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 | ||
1f4d2212 KR |
18 | lose_these_too="" |
19 | for d in obsolete regress regress.m68k testscripts ; do | |
20 | if [ -d $d ]; then | |
21 | lose_these_too="${lose_these_too} $d" | |
22 | fi | |
23 | done | |
24 | ||
d4d5412d RP |
25 | # All files listed between the "Things-to-keep:" line and the |
26 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
27 | # Directories listed in this section will have their own Sanitize | |
28 | # called. Directories not listed will be removed in their entirety | |
29 | # with rm -rf. | |
30 | ||
31 | Things-to-keep: | |
32 | ||
eee109cd | 33 | CONTRIBUTORS |
d4d5412d RP |
34 | COPYING |
35 | ChangeLog | |
cdc49cba | 36 | ChangeLog.1 |
e2b4bd2a | 37 | Makefile.am |
d4d5412d | 38 | Makefile.in |
eee109cd | 39 | NEWS |
d4d5412d | 40 | README |
eee109cd | 41 | README-vms |
6e71a03b | 42 | acconfig.h |
e2b4bd2a | 43 | acinclude.m4 |
6e71a03b | 44 | aclocal.m4 |
d4d5412d RP |
45 | app.c |
46 | as.c | |
47 | as.h | |
48 | atof-generic.c | |
d4d5412d RP |
49 | bignum-copy.c |
50 | bignum.h | |
eee109cd | 51 | bit_fix.h |
374bdac7 | 52 | cgen.c |
d4d5412d RP |
53 | cond.c |
54 | config | |
e2b4bd2a | 55 | config.in |
003acb2d | 56 | config-gas.com |
6e71a03b | 57 | configure |
c593cf41 | 58 | configure.bat |
d4d5412d RP |
59 | configure.in |
60 | debug.c | |
65d7de4f | 61 | dep-in.sed |
663282f0 | 62 | depend.c |
a262a1b2 | 63 | doc |
9faec336 ILT |
64 | ecoff.c |
65 | ecoff.h | |
511cd41c KR |
66 | emul-target.h |
67 | emul.h | |
d4d5412d RP |
68 | expr.c |
69 | expr.h | |
d4d5412d | 70 | flonum-copy.c |
eee109cd | 71 | flonum-konst.c |
d4d5412d RP |
72 | flonum-mult.c |
73 | flonum.h | |
74 | frags.c | |
75 | frags.h | |
a5a4b5ac | 76 | gasp.c |
aa4f6c56 | 77 | gdbinit.in |
d4d5412d RP |
78 | hash.c |
79 | hash.h | |
d4d5412d RP |
80 | input-file.c |
81 | input-file.h | |
82 | input-scrub.c | |
920babce | 83 | link.cmd |
d7d28d22 RP |
84 | listing.c |
85 | listing.h | |
2d29d89d | 86 | literal.c |
8e5c905e DP |
87 | itbl-lex.l |
88 | itbl-ops.c | |
89 | itbl-ops.h | |
90 | itbl-parse.y | |
4c72b6a7 | 91 | mac-as.r |
7e047ac2 ILT |
92 | macro.c |
93 | macro.h | |
f649d525 | 94 | makefile.vms |
d4d5412d | 95 | messages.c |
0fb26eac | 96 | mpw-config.in |
4c72b6a7 | 97 | mpw-make.sed |
d4d5412d | 98 | obj.h |
d4d5412d RP |
99 | output-file.c |
100 | output-file.h | |
101 | read.c | |
102 | read.h | |
7e047ac2 ILT |
103 | sb.c |
104 | sb.h | |
29249b42 | 105 | stabs.c |
e2b4bd2a | 106 | stamp-h.in |
d4d5412d RP |
107 | struc-symbol.h |
108 | subsegs.c | |
109 | subsegs.h | |
110 | symbols.c | |
111 | symbols.h | |
112 | tc.h | |
f70a4714 | 113 | testsuite |
be2fc7ec | 114 | vmsconf.sh |
d4d5412d RP |
115 | write.c |
116 | write.h | |
d4d5412d | 117 | |
87756e15 RP |
118 | Things-to-lose: |
119 | ||
d4d5412d RP |
120 | Do-last: |
121 | ||
6ff87ead | 122 | v850_files="ChangeLog configure.in configure" |
a365cd79 NC |
123 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
124 | for i in $v850_files ; do | |
125 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
126 | if [ -n "${verbose}" ] ; then | |
127 | echo Keeping v850e stuff in $i | |
128 | fi | |
129 | fi | |
130 | done | |
131 | else | |
132 | for i in $v850_files ; do | |
133 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
134 | if [ -n "${verbose}" ] ; then | |
135 | echo Removing traces of \"v850e\" from $i... | |
136 | fi | |
137 | cp $i new | |
138 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
139 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
140 | if [ -n "${verbose}" ] ; then | |
141 | echo Caching $i in .Recover... | |
142 | fi | |
143 | mv $i .Recover | |
144 | fi | |
145 | mv new $i | |
146 | fi | |
147 | done | |
148 | fi | |
276c2d7d | 149 | |
01c655cc | 150 | r5900_files="ChangeLog configure configure.in" |
276c2d7d GRK |
151 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
152 | for i in $r5900_files ; do | |
153 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
154 | if [ -n "${verbose}" ] ; then | |
155 | echo Keeping r5900 stuff in $i | |
156 | fi | |
157 | fi | |
158 | done | |
159 | else | |
160 | for i in $r5900_files ; do | |
161 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
162 | if [ -n "${verbose}" ] ; then | |
163 | echo Removing traces of \"r5900\" from $i... | |
164 | fi | |
165 | cp $i new | |
166 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
167 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
c6aa56bc C |
168 | if [ -n "${verbose}" ] ; then |
169 | echo Caching $i in .Recover... | |
170 | fi | |
171 | mv $i .Recover | |
172 | fi | |
173 | mv new $i | |
174 | fi | |
175 | done | |
176 | fi | |
177 | ||
aa2e0460 KR |
178 | vr5400_files="ChangeLog" |
179 | if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then | |
180 | for i in $vr5400_files ; do | |
181 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
182 | if [ -n "${verbose}" ] ; then | |
183 | echo Keeping vr5400 stuff in $i | |
184 | fi | |
185 | fi | |
186 | done | |
187 | else | |
188 | for i in $vr5400_files ; do | |
189 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then | |
190 | if [ -n "${verbose}" ] ; then | |
191 | echo Removing traces of \"vr5400\" from $i... | |
192 | fi | |
193 | cp $i new | |
194 | sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new | |
195 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
196 | if [ -n "${verbose}" ] ; then | |
197 | echo Caching $i in .Recover... | |
198 | fi | |
199 | mv $i .Recover | |
200 | fi | |
201 | mv new $i | |
202 | fi | |
203 | done | |
204 | fi | |
205 | ||
318b499d GRK |
206 | tx19_files="ChangeLog" |
207 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then | |
208 | for i in $tx19_files ; do | |
209 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
210 | if [ -n "${verbose}" ] ; then | |
211 | echo Keeping tx19 stuff in $i | |
212 | fi | |
213 | fi | |
214 | done | |
215 | else | |
216 | for i in $tx19_files ; do | |
217 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
218 | if [ -n "${verbose}" ] ; then | |
219 | echo Removing traces of \"tx19\" from $i... | |
220 | fi | |
221 | cp $i new | |
222 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
223 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
224 | if [ -n "${verbose}" ] ; then | |
225 | echo Caching $i in .Recover... | |
226 | fi | |
227 | mv $i .Recover | |
228 | fi | |
229 | mv new $i | |
230 | fi | |
231 | done | |
232 | fi | |
233 | ||
605ca21a ILT |
234 | tx49_files="ChangeLog" |
235 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then | |
236 | for i in $tx49_files ; do | |
237 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
238 | if [ -n "${verbose}" ] ; then | |
239 | echo Keeping tx49 stuff in $i | |
240 | fi | |
241 | fi | |
242 | done | |
243 | else | |
244 | for i in $tx49_files ; do | |
245 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
246 | if [ -n "${verbose}" ] ; then | |
247 | echo Removing traces of \"tx49\" from $i... | |
248 | fi | |
249 | cp $i new | |
250 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
251 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
252 | if [ -n "${verbose}" ] ; then | |
253 | echo Caching $i in .Recover... | |
254 | fi | |
255 | mv $i .Recover | |
256 | fi | |
257 | mv new $i | |
258 | fi | |
259 | done | |
260 | fi | |
261 | ||
64556643 FF |
262 | tic80_files="ChangeLog configure.in configure" |
263 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
264 | for i in $tic80_files ; do | |
265 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
266 | if [ -n "${verbose}" ] ; then | |
267 | echo Keeping tic80 stuff in $i | |
268 | fi | |
269 | fi | |
270 | done | |
271 | else | |
272 | for i in $tic80_files ; do | |
273 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
274 | if [ -n "${verbose}" ] ; then | |
275 | echo Removing traces of \"tic80\" from $i... | |
276 | fi | |
277 | cp $i new | |
278 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
279 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
280 | if [ -n "${verbose}" ] ; then | |
281 | echo Caching $i in .Recover... | |
282 | fi | |
283 | mv $i .Recover | |
284 | fi | |
285 | mv new $i | |
286 | fi | |
287 | done | |
288 | fi | |
289 | ||
54d5e0fb AMT |
290 | d30v_files="ChangeLog configure configure.in" |
291 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
292 | for i in $d30v_files ; do | |
293 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
294 | if [ -n "${verbose}" ] ; then | |
295 | echo Keeping d30v stuff in $i | |
296 | fi | |
297 | fi | |
298 | done | |
299 | else | |
300 | for i in $d30v_files ; do | |
301 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
302 | if [ -n "${verbose}" ] ; then | |
303 | echo Removing traces of \"d30v\" from $i... | |
304 | fi | |
305 | cp $i new | |
306 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
307 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
308 | if [ -n "${verbose}" ] ; then | |
309 | echo Caching $i in .Recover... | |
310 | fi | |
311 | mv $i .Recover | |
312 | fi | |
313 | mv new $i | |
314 | fi | |
315 | done | |
316 | fi | |
317 | ||
bf5ac1b8 JR |
318 | if [ -n "${verbose}" ] ; then |
319 | echo Processing \"sh4\"... | |
320 | fi | |
321 | ||
322 | sh4_files="ChangeLog" | |
323 | if ( echo $* | grep keep\-sh4 > /dev/null ) ; then | |
324 | for i in $sh4_files ; do | |
325 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
326 | if [ -n "${verbose}" ] ; then | |
327 | echo Keeping sh4 stuff in $i | |
328 | fi | |
329 | fi | |
330 | done | |
331 | else | |
332 | for i in $sh4_files ; do | |
333 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
334 | if [ -n "${verbose}" ] ; then | |
335 | echo Removing traces of \"sh4\" from $i... | |
336 | fi | |
337 | cp $i new | |
338 | sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new | |
339 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
340 | if [ -n "${verbose}" ] ; then | |
341 | echo Caching $i in .Recover... | |
342 | fi | |
343 | mv $i .Recover | |
344 | fi | |
345 | mv new $i | |
346 | fi | |
347 | done | |
348 | fi | |
349 | ||
d745e6d9 NC |
350 | m32rx_files="ChangeLog configure.in configure" |
351 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
352 | for i in $m32rx_files ; do | |
353 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
354 | if [ -n "${verbose}" ] ; then | |
355 | echo Keeping m32rx stuff in $i | |
356 | fi | |
357 | fi | |
358 | done | |
359 | else | |
360 | for i in $m32rx_files ; do | |
361 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
362 | if [ -n "${verbose}" ] ; then | |
363 | echo Removing traces of \"m32rx\" from $i... | |
364 | fi | |
365 | cp $i new | |
366 | sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new | |
367 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
368 | if [ -n "${verbose}" ] ; then | |
369 | echo Caching $i in .Recover... | |
370 | fi | |
371 | mv $i .Recover | |
372 | fi | |
373 | mv new $i | |
374 | fi | |
375 | done | |
376 | fi | |
377 | ||
5c680afd MT |
378 | for i in * ; do |
379 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
380 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
381 | fi | |
382 | done | |
383 | ||
d4d5412d | 384 | # |
d4d5412d | 385 | # End of file. |