]>
Commit | Line | Data |
---|---|---|
a6148eeb | 1 | # .Sanitize for devo/gas. |
d4d5412d | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
d4d5412d 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 | |
a6148eeb | 14 | # done in this directory. |
d4d5412d RP |
15 | |
16 | Do-first: | |
17 | ||
4f5d16c7 | 18 | if ( echo $* | grep keep\-mpw > /dev/null ) ; then |
623d4854 | 19 | keep_these_too="mpw-config.in mpw-make.in ChangeLog.mpw" |
2a79b202 | 20 | else |
623d4854 | 21 | lose_these_too="mpw-config.in mpw-make.in ChangeLog.mpw" |
2a79b202 SS |
22 | fi |
23 | ||
d4d5412d RP |
24 | # All files listed between the "Things-to-keep:" line and the |
25 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
26 | # Directories listed in this section will have their own Sanitize | |
27 | # called. Directories not listed will be removed in their entirety | |
28 | # with rm -rf. | |
29 | ||
30 | Things-to-keep: | |
31 | ||
eee109cd | 32 | CONTRIBUTORS |
d4d5412d RP |
33 | COPYING |
34 | ChangeLog | |
35 | Makefile.in | |
eee109cd | 36 | NEWS |
d4d5412d RP |
37 | NOTES |
38 | NOTES.config | |
39 | README | |
920babce | 40 | README-quirks |
eee109cd | 41 | README-vms |
d4d5412d RP |
42 | README.coff |
43 | README.rich | |
6e71a03b KR |
44 | acconfig.h |
45 | aclocal.m4 | |
d4d5412d RP |
46 | app.c |
47 | as.c | |
48 | as.h | |
49 | atof-generic.c | |
d4d5412d RP |
50 | bignum-copy.c |
51 | bignum.h | |
eee109cd | 52 | bit_fix.h |
d4d5412d | 53 | cond.c |
6e71a03b | 54 | conf.in |
d4d5412d | 55 | config |
003acb2d | 56 | config-gas.com |
6e71a03b | 57 | configure |
c593cf41 | 58 | configure.bat |
d4d5412d RP |
59 | configure.in |
60 | debug.c | |
a262a1b2 | 61 | doc |
9faec336 ILT |
62 | ecoff.c |
63 | ecoff.h | |
d4d5412d RP |
64 | expr.c |
65 | expr.h | |
d4d5412d | 66 | flonum-copy.c |
eee109cd | 67 | flonum-konst.c |
d4d5412d RP |
68 | flonum-mult.c |
69 | flonum.h | |
70 | frags.c | |
71 | frags.h | |
a5a4b5ac | 72 | gasp.c |
aa4f6c56 | 73 | gdbinit.in |
d4d5412d RP |
74 | hash.c |
75 | hash.h | |
d4d5412d RP |
76 | input-file.c |
77 | input-file.h | |
78 | input-scrub.c | |
920babce | 79 | link.cmd |
d7d28d22 RP |
80 | listing.c |
81 | listing.h | |
2d29d89d | 82 | literal.c |
d4d5412d RP |
83 | messages.c |
84 | obj.h | |
d4d5412d RP |
85 | output-file.c |
86 | output-file.h | |
87 | read.c | |
88 | read.h | |
29249b42 | 89 | stabs.c |
d4d5412d RP |
90 | struc-symbol.h |
91 | subsegs.c | |
92 | subsegs.h | |
93 | symbols.c | |
94 | symbols.h | |
95 | tc.h | |
f70a4714 | 96 | testsuite |
be2fc7ec | 97 | vmsconf.sh |
d4d5412d RP |
98 | write.c |
99 | write.h | |
100 | xmalloc.c | |
d4d5412d | 101 | |
87756e15 RP |
102 | Things-to-lose: |
103 | ||
d4d5412d RP |
104 | Do-last: |
105 | ||
10db66ec KR |
106 | i960xl_files=ChangeLog |
107 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
108 | if [ -n "${verbose}" ] ; then | |
109 | echo Keeping i960xl stuff in $i960xl_files. | |
110 | fi | |
111 | else | |
112 | if [ -n "${verbose}" ]; then | |
113 | echo -n Cleaning i960xl in `pwd`: | |
114 | fi | |
115 | for f in $i960xl_files ; do | |
116 | if [ -n "${verbose}" ] ; then | |
117 | echo -n " " $f | |
118 | fi | |
119 | sed '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
120 | if [ -n "${safe}" ] ; then | |
121 | mv $f .Recover | |
122 | fi | |
123 | mv new $f | |
124 | done | |
125 | fi | |
126 | ||
12c5dfda | 127 | rce_files="configure.in as.c configure ChangeLog" |
9f554efd | 128 | |
03c4ce2f MT |
129 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
130 | for i in $rce_files ; do | |
131 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 132 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 133 | echo Keeping rce stuff in $i |
5c680afd MT |
134 | fi |
135 | fi | |
136 | done | |
137 | else | |
03c4ce2f MT |
138 | for i in $rce_files ; do |
139 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 140 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 141 | echo Removing traces of \"rce\" from $i... |
5c680afd MT |
142 | fi |
143 | cp $i new | |
03c4ce2f | 144 | sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new |
5c680afd MT |
145 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
146 | if [ -n "${verbose}" ] ; then | |
147 | echo Caching $i in .Recover... | |
148 | fi | |
149 | mv $i .Recover | |
150 | fi | |
151 | mv new $i | |
152 | fi | |
153 | done | |
154 | fi | |
155 | ||
6ea93cc9 DE |
156 | arc_files="ChangeLog configure.in configure" |
157 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
158 | for i in $arc_files ; do | |
159 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
160 | if [ -n "${verbose}" ] ; then | |
161 | echo Keeping arc stuff in $i | |
162 | fi | |
163 | fi | |
164 | done | |
165 | else | |
166 | for i in $arc_files ; do | |
167 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
168 | if [ -n "${verbose}" ] ; then | |
169 | echo Removing traces of \"arc\" from $i... | |
170 | fi | |
171 | cp $i new | |
172 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
173 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
174 | if [ -n "${verbose}" ] ; then | |
175 | echo Caching $i in .Recover... | |
176 | fi | |
177 | mv $i .Recover | |
178 | fi | |
179 | mv new $i | |
180 | fi | |
181 | done | |
182 | fi | |
183 | ||
5c680afd MT |
184 | for i in * ; do |
185 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
186 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
187 | fi | |
188 | done | |
189 | ||
d4d5412d | 190 | # |
d4d5412d | 191 | # End of file. |