Commit | Line | Data |
---|---|---|
4f5d16c7 | 1 | # .Sanitize for devo/gas/config |
0fd8d5d9 | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
0fd8d5d9 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 | |
e33bfde7 | 14 | # done in this directory. |
0fd8d5d9 RP |
15 | |
16 | Do-first: | |
17 | ||
6438209c KR |
18 | if [ -d vms ]; then |
19 | lose_these_too="vms ${lose_these_too}" | |
20 | fi | |
21 | ||
64556643 FF |
22 | tic80_files="tc-tic80.c tc-tic80.h" |
23 | ||
24 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
25 | keep_these_too="${tic80_files} ${keep_these_too}" | |
26 | else | |
27 | lose_these_too="${tic80_files} ${lose_these_too}" | |
28 | fi | |
c6aa56bc | 29 | |
276dd6ef | 30 | sky_files="tc-dvp.c tc-dvp.h" |
209fb346 DE |
31 | |
32 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
33 | keep_these_too="${sky_files} ${keep_these_too}" | |
34 | else | |
35 | lose_these_too="${sky_files} ${lose_these_too}" | |
36 | fi | |
37 | ||
0fd8d5d9 | 38 | # All files listed between the "Things-to-keep:" line and the |
e33bfde7 | 39 | # "Do-last:" line will be kept. All other files will be removed. |
0fd8d5d9 RP |
40 | # Directories listed in this section will have their own Sanitize |
41 | # called. Directories not listed will be removed in their entirety | |
42 | # with rm -rf. | |
43 | ||
44 | Things-to-keep: | |
45 | ||
3e6e09c0 | 46 | aout_gnu.h |
0fd8d5d9 | 47 | atof-ieee.c |
b41390d2 | 48 | atof-tahoe.c |
0fd8d5d9 | 49 | atof-vax.c |
034988c6 ILT |
50 | e-i386coff.c |
51 | e-i386elf.c | |
511cd41c KR |
52 | e-mipsecoff.c |
53 | e-mipself.c | |
e33bfde7 | 54 | go32.cfg |
8e5c905e | 55 | itbl-mips.h |
a1c7c0f3 ILT |
56 | m68k-parse.h |
57 | m68k-parse.y | |
cd625bf3 | 58 | m88k-opcode.h |
0fd8d5d9 RP |
59 | obj-aout.c |
60 | obj-aout.h | |
0fd8d5d9 RP |
61 | obj-bout.c |
62 | obj-bout.h | |
63 | obj-coff.c | |
64 | obj-coff.h | |
e99f6f9c ILT |
65 | obj-ecoff.c |
66 | obj-ecoff.h | |
a4099f78 KR |
67 | obj-elf.c |
68 | obj-elf.h | |
f649d525 ILT |
69 | obj-evax.c |
70 | obj-evax.h | |
0fd8d5d9 RP |
71 | obj-generic.c |
72 | obj-generic.h | |
daae8c92 KR |
73 | obj-hp300.c |
74 | obj-hp300.h | |
fd345c9c SC |
75 | obj-ieee.c |
76 | obj-ieee.h | |
511cd41c KR |
77 | obj-multi.c |
78 | obj-multi.h | |
0fa747c4 JL |
79 | obj-som.c |
80 | obj-som.h | |
b41390d2 KR |
81 | obj-vms.c |
82 | obj-vms.h | |
0fd8d5d9 RP |
83 | tc-a29k.c |
84 | tc-a29k.h | |
5749c497 KR |
85 | tc-alpha.c |
86 | tc-alpha.h | |
bdb836d1 DE |
87 | tc-arc.c |
88 | tc-arc.h | |
6c3bc2b8 KR |
89 | tc-arm.c |
90 | tc-arm.h | |
8a683c67 ILT |
91 | tc-d10v.c |
92 | tc-d10v.h | |
cc88a106 ILT |
93 | tc-d30v.c |
94 | tc-d30v.h | |
0fd8d5d9 RP |
95 | tc-generic.c |
96 | tc-generic.h | |
fd345c9c SC |
97 | tc-h8300.c |
98 | tc-h8300.h | |
033400ec SC |
99 | tc-h8500.c |
100 | tc-h8500.h | |
daae8c92 KR |
101 | tc-hppa.c |
102 | tc-hppa.h | |
0fd8d5d9 RP |
103 | tc-i386.c |
104 | tc-i386.h | |
105 | tc-i860.c | |
106 | tc-i860.h | |
107 | tc-i960.c | |
108 | tc-i960.h | |
9f719a56 DE |
109 | tc-m32r.c |
110 | tc-m32r.h | |
0fd8d5d9 RP |
111 | tc-m68851.h |
112 | tc-m68k.c | |
113 | tc-m68k.h | |
cd625bf3 DHW |
114 | tc-m88k.c |
115 | tc-m88k.h | |
fd345c9c SC |
116 | tc-mips.c |
117 | tc-mips.h | |
ae1b99e4 JL |
118 | tc-mn10200.c |
119 | tc-mn10200.h | |
120 | tc-mn10300.c | |
121 | tc-mn10300.h | |
0fd8d5d9 RP |
122 | tc-ns32k.c |
123 | tc-ns32k.h | |
af46c203 ILT |
124 | tc-ppc.c |
125 | tc-ppc.h | |
4a1bbbe7 SC |
126 | tc-sh.c |
127 | tc-sh.h | |
6690d829 | 128 | tc-sparc.c |
920babce | 129 | tc-sparc.h |
af3b5ad2 KR |
130 | tc-tahoe.c |
131 | tc-tahoe.h | |
0e034c77 ILT |
132 | tc-tic30.c |
133 | tc-tic30.h | |
8f3c5ddb NC |
134 | tc-v850.c |
135 | tc-v850.h | |
0fd8d5d9 RP |
136 | tc-vax.c |
137 | tc-vax.h | |
b3235d56 SC |
138 | tc-w65.c |
139 | tc-w65.h | |
163107a1 SC |
140 | tc-z8k.c |
141 | tc-z8k.h | |
daae8c92 | 142 | te-386bsd.h |
66b935da | 143 | te-aux.h |
880b7429 | 144 | te-delt88.h |
e33bfde7 | 145 | te-delta.h |
0fd8d5d9 | 146 | te-dpx2.h |
f5ed78de | 147 | te-dynix.h |
0fd8d5d9 | 148 | te-generic.h |
cd8aca19 | 149 | te-go32.h |
daae8c92 KR |
150 | te-hp300.h |
151 | te-hppa.h | |
cd625bf3 | 152 | te-i386aix.h |
0fd8d5d9 | 153 | te-ic960.h |
daae8c92 | 154 | te-linux.h |
d3ecee39 | 155 | te-lnews.h |
d0c25cae | 156 | te-lynx.h |
5efa30fa | 157 | te-mach.h |
75d1d87a | 158 | te-macos.h |
511cd41c | 159 | te-multi.h |
04050d57 | 160 | te-nbsd.h |
d5a0eeac | 161 | te-nbsd532.h |
f68880ea | 162 | te-pc532mach.h |
b04b02a5 | 163 | te-pe.h |
cd8aca19 | 164 | te-ppcnw.h |
8a6f53e9 | 165 | te-psos.h |
69c1de90 | 166 | te-riscix.h |
df4021c1 | 167 | te-sparcaout.h |
0fd8d5d9 | 168 | te-sun3.h |
fee3e248 | 169 | te-svr4.h |
920babce | 170 | te-sysv32.h |
0fd8d5d9 | 171 | vax-inst.h |
f649d525 | 172 | vms-a-conf.h |
e33bfde7 | 173 | vms-conf.h |
0fd8d5d9 | 174 | |
87756e15 RP |
175 | Things-to-lose: |
176 | ||
e33bfde7 ILT |
177 | |
178 | ||
179 | # The lines between the "Do-last:" line and the end of the file | |
180 | # are executed as a /bin/sh shell script after everything else is | |
181 | # done. | |
182 | ||
0fd8d5d9 RP |
183 | Do-last: |
184 | ||
82169ece JL |
185 | am33_files="tc-mn10300.c" |
186 | if ( echo $* | grep keep\-am33 > /dev/null ) ; then | |
187 | for i in $am33_files ; do | |
188 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then | |
189 | if [ -n "${verbose}" ] ; then | |
190 | echo Keeping am33 stuff in $i | |
191 | fi | |
192 | fi | |
193 | done | |
194 | else | |
195 | for i in $am33_files ; do | |
196 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then | |
197 | if [ -n "${verbose}" ] ; then | |
198 | echo Removing traces of \"am33\" from $i... | |
199 | fi | |
200 | cp $i new | |
201 | sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new | |
202 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
203 | if [ -n "${verbose}" ] ; then | |
204 | echo Caching $i in .Recover... | |
205 | fi | |
206 | mv $i .Recover | |
207 | fi | |
208 | mv new $i | |
209 | fi | |
210 | done | |
211 | fi | |
212 | ||
276c2d7d | 213 | r5900_files="tc-mips.c" |
276c2d7d GRK |
214 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
215 | for i in $r5900_files ; do | |
216 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
217 | if [ -n "${verbose}" ] ; then | |
218 | echo Keeping r5900 stuff in $i | |
219 | fi | |
220 | fi | |
221 | done | |
222 | else | |
223 | for i in * ; do | |
224 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
225 | if [ -n "${verbose}" ] ; then | |
226 | echo Removing traces of \"r5900\" from $i... | |
227 | fi | |
228 | cp $i new | |
32e23ecd | 229 | sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new |
276c2d7d GRK |
230 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
231 | if [ -n "${verbose}" ] ; then | |
232 | echo Caching $i in .Recover... | |
233 | fi | |
234 | mv $i .Recover | |
235 | fi | |
236 | mv new $i | |
237 | fi | |
238 | done | |
239 | fi | |
240 | ||
3d759c53 KR |
241 | cygnus_files="tc-mips.c" |
242 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
243 | for i in $cygnus_files ; do | |
244 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
aa2e0460 | 245 | if [ -n "${verbose}" ] ; then |
3d759c53 | 246 | echo Keeping cygnus stuff in $i |
aa2e0460 KR |
247 | fi |
248 | fi | |
249 | done | |
250 | else | |
251 | for i in * ; do | |
3d759c53 | 252 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
aa2e0460 | 253 | if [ -n "${verbose}" ] ; then |
3d759c53 | 254 | echo Removing traces of \"cygnus\" from $i... |
aa2e0460 KR |
255 | fi |
256 | cp $i new | |
3d759c53 | 257 | sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new |
aa2e0460 KR |
258 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
259 | if [ -n "${verbose}" ] ; then | |
260 | echo Caching $i in .Recover... | |
261 | fi | |
262 | mv $i .Recover | |
263 | fi | |
264 | mv new $i | |
265 | fi | |
266 | done | |
267 | fi | |
268 | ||
35fa3bab CM |
269 | armelf_files="tc-arm.c tc-arm.h" |
270 | if ( echo $* | grep keep\-armelf > /dev/null ) ; then | |
271 | for i in $armelf_files ; do | |
272 | if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then | |
273 | if [ -n "${verbose}" ] ; then | |
274 | echo Keeping armelf stuff in $i | |
275 | fi | |
276 | fi | |
277 | done | |
278 | else | |
279 | for i in * ; do | |
280 | if test ! -d $i && (grep sanitize-armelf $i > /dev/null) ; then | |
281 | if [ -n "${verbose}" ] ; then | |
282 | echo Removing traces of \"armelf\" from $i... | |
283 | fi | |
284 | cp $i new | |
285 | sed '/start\-sanitize\-armelf/,/end\-sanitize\-armelf/d' < $i > new | |
286 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
287 | if [ -n "${verbose}" ] ; then | |
288 | echo Caching $i in .Recover... | |
289 | fi | |
290 | mv $i .Recover | |
291 | fi | |
292 | mv new $i | |
293 | fi | |
294 | done | |
295 | fi | |
296 | ||
318b499d | 297 | tx19_files="tc-mips.c" |
318b499d GRK |
298 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
299 | for i in $tx19_files ; do | |
300 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
301 | if [ -n "${verbose}" ] ; then | |
302 | echo Keeping tx19 stuff in $i | |
303 | fi | |
304 | fi | |
305 | done | |
306 | else | |
307 | for i in * ; do | |
308 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
309 | if [ -n "${verbose}" ] ; then | |
310 | echo Removing traces of \"tx19\" from $i... | |
311 | fi | |
312 | cp $i new | |
313 | sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new | |
314 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
315 | if [ -n "${verbose}" ] ; then | |
316 | echo Caching $i in .Recover... | |
317 | fi | |
318 | mv $i .Recover | |
319 | fi | |
320 | mv new $i | |
321 | fi | |
322 | done | |
323 | fi | |
324 | ||
4ebda395 | 325 | tx49_files="ChangeLog tc-mips.c" |
4ebda395 GRK |
326 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
327 | for i in $tx49_files ; do | |
328 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
329 | if [ -n "${verbose}" ] ; then | |
330 | echo Keeping tx49 stuff in $i | |
331 | fi | |
332 | fi | |
333 | done | |
334 | else | |
335 | for i in * ; do | |
336 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
337 | if [ -n "${verbose}" ] ; then | |
338 | echo Removing traces of \"tx49\" from $i... | |
339 | fi | |
340 | cp $i new | |
341 | sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new | |
342 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
343 | if [ -n "${verbose}" ] ; then | |
344 | echo Caching $i in .Recover... | |
345 | fi | |
346 | mv $i .Recover | |
347 | fi | |
348 | mv new $i | |
349 | fi | |
350 | done | |
351 | fi | |
352 | ||
54d5e0fb | 353 | tic80_files="obj-coff.h" |
54d5e0fb AMT |
354 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
355 | for i in $tic80_files ; do | |
356 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
357 | if [ -n "${verbose}" ] ; then | |
358 | echo Keeping tic80 stuff in $i | |
359 | fi | |
360 | fi | |
361 | done | |
362 | else | |
363 | for i in * ; do | |
364 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
365 | if [ -n "${verbose}" ] ; then | |
366 | echo Removing traces of \"tic80\" from $i... | |
367 | fi | |
368 | cp $i new | |
32e23ecd | 369 | sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new |
54d5e0fb | 370 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
bf5ac1b8 JR |
371 | if [ -n "${verbose}" ] ; then |
372 | echo Caching $i in .Recover... | |
373 | fi | |
54d5e0fb AMT |
374 | mv $i .Recover |
375 | fi | |
376 | mv new $i | |
377 | fi | |
378 | done | |
379 | fi | |
380 | ||
32e23ecd NC |
381 | v850e_files="tc-v850.c tc-v850.h" |
382 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then | |
ae6ecba5 NC |
383 | for i in $v850e_files ; do |
384 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
385 | if [ -n "${verbose}" ] ; then | |
386 | echo Keeping v850e stuff in $i | |
387 | fi | |
388 | fi | |
389 | done | |
390 | else | |
32e23ecd | 391 | for i in $v850e_files ; do |
210c24d6 | 392 | if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then |
58036ae4 | 393 | if [ -n "${verbose}" ] ; then |
210c24d6 | 394 | echo Removing traces of \"v850e\" from $i... |
58036ae4 NC |
395 | fi |
396 | cp $i new | |
210c24d6 | 397 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new |
58036ae4 NC |
398 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
399 | if [ -n "${verbose}" ] ; then | |
400 | echo Caching $i in .Recover... | |
401 | fi | |
402 | mv $i .Recover | |
403 | fi | |
404 | mv new $i | |
32e23ecd NC |
405 | fi |
406 | done | |
32e23ecd | 407 | fi |
276c2d7d | 408 | |
d745e6d9 NC |
409 | m32rx_files="tc-m32r.c tc-m32r.h" |
410 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
411 | for i in $m32rx_files ; do | |
b6930bdf | 412 | if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then |
d745e6d9 NC |
413 | if [ -n "${verbose}" ] ; then |
414 | echo Keeping m32rx stuff in $i | |
415 | fi | |
416 | fi | |
417 | done | |
418 | else | |
419 | for i in $m32rx_files ; do | |
b6930bdf | 420 | if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then |
d745e6d9 NC |
421 | if [ -n "${verbose}" ] ; then |
422 | echo Removing traces of \"m32rx\" from $i... | |
423 | fi | |
424 | cp $i new | |
425 | sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new | |
426 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
b6930bdf NC |
427 | if [ -n "${verbose}" ] ; then |
428 | echo Caching $i in .Recover... | |
429 | fi | |
430 | mv $i .Recover | |
431 | fi | |
432 | mv new $i | |
433 | fi | |
434 | done | |
435 | fi | |
436 | if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then | |
437 | for i in $m32rx_files ; do | |
438 | if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then | |
439 | if [ -n "${verbose}" ] ; then | |
440 | echo Keeping m32rx stuff in $i | |
441 | fi | |
442 | fi | |
443 | done | |
444 | else | |
445 | for i in $m32rx_files ; do | |
446 | if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then | |
447 | if [ -n "${verbose}" ] ; then | |
448 | echo Removing traces of \"m32rx\" from $i... | |
449 | fi | |
450 | cp $i new | |
451 | sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new | |
452 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
ed70a335 GRK |
453 | if [ -n "${verbose}" ] ; then |
454 | echo Caching $i in .Recover... | |
455 | fi | |
456 | mv $i .Recover | |
457 | fi | |
458 | mv new $i | |
459 | fi | |
460 | done | |
461 | fi | |
462 | ||
2d035a50 GRK |
463 | vr4320_files="tc-mips.c" |
464 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then | |
465 | for i in $vr4320_files ; do | |
466 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
467 | if [ -n "${verbose}" ] ; then | |
468 | echo Keeping vr4320 stuff in $i | |
469 | fi | |
470 | fi | |
471 | done | |
472 | else | |
473 | for i in $vr4320_files ; do | |
474 | if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
475 | if [ -n "${verbose}" ] ; then | |
476 | echo Removing traces of \"vr4320\" from $i... | |
477 | fi | |
478 | cp $i new | |
479 | sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new | |
480 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
481 | if [ -n "${verbose}" ] ; then | |
482 | echo Caching $i in .Recover... | |
483 | fi | |
484 | mv $i .Recover | |
485 | fi | |
486 | mv new $i | |
487 | fi | |
488 | done | |
489 | fi | |
490 | ||
b08a983c GRK |
491 | branchbug4011_files="tc-mips.c" |
492 | if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then | |
493 | for i in $branchbug4011_files ; do | |
494 | if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then | |
495 | if [ -n "${verbose}" ] ; then | |
496 | echo Keeping branchbug4011 stuff in $i | |
497 | fi | |
498 | fi | |
499 | done | |
500 | else | |
501 | for i in $branchbug4011_files ; do | |
502 | if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then | |
503 | if [ -n "${verbose}" ] ; then | |
504 | echo Removing traces of \"branchbug4011\" from $i... | |
505 | fi | |
506 | cp $i new | |
507 | sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new | |
508 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
509 | if [ -n "${verbose}" ] ; then | |
510 | echo Caching $i in .Recover... | |
511 | fi | |
512 | mv $i .Recover | |
513 | fi | |
514 | mv new $i | |
515 | fi | |
516 | done | |
517 | fi | |
518 | ||
d745e6d9 | 519 | for i in * ; do |
af98e836 ILT |
520 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then |
521 | echo '***' Some mentions of Sanitize are still left in gas/config/$i! 1>&2 | |
522 | fi | |
523 | done | |
524 | ||
e33bfde7 | 525 | # eof |