* configure.in: Make all i386-elf targets use bfd_gas.
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
1 # .Sanitize for devo/gas/config
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 if [ -d vms ]; then
19 lose_these_too="vms ${lose_these_too}"
20 fi
21
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
29
30 sky_files="tc-dvp.c tc-dvp.h"
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
38 # All files listed between the "Things-to-keep:" line and the
39 # "Do-last:" line will be kept. All other files will be removed.
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
46 aout_gnu.h
47 atof-ieee.c
48 atof-tahoe.c
49 atof-vax.c
50 e-i386coff.c
51 e-i386elf.c
52 e-mipsecoff.c
53 e-mipself.c
54 go32.cfg
55 itbl-mips.h
56 m68k-parse.h
57 m68k-parse.y
58 m88k-opcode.h
59 obj-aout.c
60 obj-aout.h
61 obj-bout.c
62 obj-bout.h
63 obj-coff.c
64 obj-coff.h
65 obj-ecoff.c
66 obj-ecoff.h
67 obj-elf.c
68 obj-elf.h
69 obj-evax.c
70 obj-evax.h
71 obj-generic.c
72 obj-generic.h
73 obj-hp300.c
74 obj-hp300.h
75 obj-ieee.c
76 obj-ieee.h
77 obj-multi.c
78 obj-multi.h
79 obj-som.c
80 obj-som.h
81 obj-vms.c
82 obj-vms.h
83 tc-a29k.c
84 tc-a29k.h
85 tc-alpha.c
86 tc-alpha.h
87 tc-arc.c
88 tc-arc.h
89 tc-arm.c
90 tc-arm.h
91 tc-d10v.c
92 tc-d10v.h
93 tc-d30v.c
94 tc-d30v.h
95 tc-generic.c
96 tc-generic.h
97 tc-h8300.c
98 tc-h8300.h
99 tc-h8500.c
100 tc-h8500.h
101 tc-hppa.c
102 tc-hppa.h
103 tc-i386.c
104 tc-i386.h
105 tc-i860.c
106 tc-i860.h
107 tc-i960.c
108 tc-i960.h
109 tc-m32r.c
110 tc-m32r.h
111 tc-m68851.h
112 tc-m68k.c
113 tc-m68k.h
114 tc-m88k.c
115 tc-m88k.h
116 tc-mips.c
117 tc-mips.h
118 tc-mn10200.c
119 tc-mn10200.h
120 tc-mn10300.c
121 tc-mn10300.h
122 tc-ns32k.c
123 tc-ns32k.h
124 tc-ppc.c
125 tc-ppc.h
126 tc-sh.c
127 tc-sh.h
128 tc-sparc.c
129 tc-sparc.h
130 tc-tahoe.c
131 tc-tahoe.h
132 tc-tic30.c
133 tc-tic30.h
134 tc-v850.c
135 tc-v850.h
136 tc-vax.c
137 tc-vax.h
138 tc-w65.c
139 tc-w65.h
140 tc-z8k.c
141 tc-z8k.h
142 te-386bsd.h
143 te-aux.h
144 te-delt88.h
145 te-delta.h
146 te-dpx2.h
147 te-dynix.h
148 te-generic.h
149 te-go32.h
150 te-hp300.h
151 te-hppa.h
152 te-i386aix.h
153 te-ic960.h
154 te-linux.h
155 te-lnews.h
156 te-lynx.h
157 te-mach.h
158 te-macos.h
159 te-multi.h
160 te-nbsd.h
161 te-nbsd532.h
162 te-pc532mach.h
163 te-pe.h
164 te-ppcnw.h
165 te-psos.h
166 te-riscix.h
167 te-sparcaout.h
168 te-sun3.h
169 te-svr4.h
170 te-sysv32.h
171 vax-inst.h
172 vms-a-conf.h
173 vms-conf.h
174
175 Things-to-lose:
176
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
183 Do-last:
184
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
213 r5900_files="tc-mips.c"
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
229 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
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
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
245 if [ -n "${verbose}" ] ; then
246 echo Keeping cygnus stuff in $i
247 fi
248 fi
249 done
250 else
251 for i in * ; do
252 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
253 if [ -n "${verbose}" ] ; then
254 echo Removing traces of \"cygnus\" from $i...
255 fi
256 cp $i new
257 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new
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
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
297 tx19_files="tc-mips.c"
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
325 tx49_files="ChangeLog tc-mips.c"
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
353 tic80_files="obj-coff.h"
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
369 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
370 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
371 if [ -n "${verbose}" ] ; then
372 echo Caching $i in .Recover...
373 fi
374 mv $i .Recover
375 fi
376 mv new $i
377 fi
378 done
379 fi
380
381 v850e_files="tc-v850.c tc-v850.h"
382 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
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
391 for i in $v850e_files ; do
392 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
393 if [ -n "${verbose}" ] ; then
394 echo Removing traces of \"v850e\" from $i...
395 fi
396 cp $i new
397 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
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
405 fi
406 done
407 fi
408
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
412 if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then
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
420 if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then
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
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
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
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
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
519 for i in * ; do
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
525 # eof
This page took 0.040309 seconds and 4 git commands to generate.