]>
Commit | Line | Data |
---|---|---|
764eb349 | 1 | # .Sanitize for devo/ld. |
86e4d6e4 | 2 | |
747a47f2 | 3 | # Each directory to survive its way into a release will need a file |
86e4d6e4 RP |
4 | # like this one called "./.Sanitize". All keyword lines must exist, |
5 | # and must exist in the order specified by this file. Each directory | |
6 | # in the tree will be processed, top down, in the following order. | |
7 | ||
8 | # Hash started lines like this one are comments and will be deleted | |
9 | # before anything else is done. Blank lines will also be squashed | |
10 | # out. | |
11 | ||
12 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
13 | # line are executed as a /bin/sh shell script before anything else is | |
747a47f2 | 14 | # done in this directory. |
86e4d6e4 RP |
15 | |
16 | Do-first: | |
17 | ||
747a47f2 | 18 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
764eb349 | 19 | keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${keep_these_too}" |
747a47f2 | 20 | else |
764eb349 | 21 | lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw ${lose_these_too}" |
747a47f2 SS |
22 | fi |
23 | ||
24 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
25 | keep_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${keep_these_too}" | |
26 | else | |
27 | lose_these_too="mpw-xconfig.in mpw-em.c ChangeLog.gm ${lose_these_too}" | |
28 | fi | |
29 | ||
86e4d6e4 RP |
30 | # All files listed between the "Things-to-keep:" line and the |
31 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
32 | # Directories listed in this section will have their own Sanitize | |
33 | # called. Directories not listed will be removed in their entirety | |
34 | # with rm -rf. | |
35 | ||
36 | Things-to-keep: | |
87756e15 | 37 | |
5784123f | 38 | ChangeLog |
86e4d6e4 | 39 | Makefile.in |
bc3b479c | 40 | NEWS |
c3d97ef6 | 41 | README |
fbd74d07 | 42 | TODO |
917bffa7 PB |
43 | cdtest-foo.cc |
44 | cdtest-foo.h | |
7e16be78 | 45 | cdtest-bar.cc |
917bffa7 PB |
46 | cdtest-main.cc |
47 | cdtest.exp | |
86e4d6e4 | 48 | config |
5f1fec76 | 49 | config.h |
65aa3724 | 50 | configure.bat |
86e4d6e4 | 51 | configure.in |
f8083739 | 52 | dep-in.sed |
2b63dbfe DM |
53 | emulparams |
54 | emultempl | |
c3d97ef6 | 55 | genscripts.sh |
2412a768 | 56 | h8-doc.texi |
40ab8532 | 57 | ld.1 |
2412a768 | 58 | gen-doc.texi |
5f1fec76 SC |
59 | ld.h |
60 | ld.texinfo | |
ffa057ee | 61 | ldctor.c |
1cc27b5e | 62 | ldctor.h |
c3d97ef6 PB |
63 | ldemul.c |
64 | ldemul.h | |
5f1fec76 SC |
65 | ldexp.c |
66 | ldexp.h | |
67 | ldfile.c | |
5f1fec76 | 68 | ldfile.h |
5f1fec76 | 69 | ldgram.y |
4b91c519 | 70 | ldint.texinfo |
5f1fec76 SC |
71 | ldlang.c |
72 | ldlang.h | |
73 | ldlex.h | |
74 | ldlex.l | |
5f1fec76 SC |
75 | ldmain.c |
76 | ldmain.h | |
77 | ldmisc.c | |
78 | ldmisc.h | |
5f1fec76 SC |
79 | ldver.c |
80 | ldver.h | |
5f1fec76 SC |
81 | ldwrite.c |
82 | ldwrite.h | |
0cc6a796 | 83 | lexsup.c |
b11a9b28 | 84 | mri.c |
a586b5bc | 85 | mri.h |
2b63dbfe | 86 | scripttempl |
e2f9f0f6 | 87 | testsuite |
86e4d6e4 | 88 | |
87756e15 RP |
89 | Things-to-lose: |
90 | ||
86e4d6e4 RP |
91 | Do-last: |
92 | ||
747a47f2 SS |
93 | echo Looking for traces of \"mpw\"... |
94 | ||
95 | # Don't try to clean directories here, as the 'mv' command will fail. | |
96 | # Also, grep fails on NFS mounted directories. | |
97 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then | |
98 | for i in * ; do | |
99 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
100 | echo Keeping mpw traces in $i | |
101 | fi | |
102 | done | |
103 | else | |
104 | for i in * ; do | |
105 | if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then | |
106 | echo Removing traces of \"mpw\" out of $i... | |
107 | cp $i new | |
108 | sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new | |
109 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
110 | echo Caching $i in .Recover... | |
111 | mv $i .Recover | |
112 | fi | |
113 | mv new $i | |
114 | fi | |
115 | done | |
116 | fi | |
117 | ||
86e4d6e4 | 118 | # End of file. |