* config/obj-elf.c (obj_elf_vtable_inherit): Handle arm
[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
270 tx19_files="tc-mips.c"
271 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
272 for i in $tx19_files ; do
273 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Keeping tx19 stuff in $i
276 fi
277 fi
278 done
279 else
280 for i in * ; do
281 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
282 if [ -n "${verbose}" ] ; then
283 echo Removing traces of \"tx19\" from $i...
284 fi
285 cp $i new
286 sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
287 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
288 if [ -n "${verbose}" ] ; then
289 echo Caching $i in .Recover...
290 fi
291 mv $i .Recover
292 fi
293 mv new $i
294 fi
295 done
296 fi
297
298 tx49_files="ChangeLog tc-mips.c"
299 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
300 for i in $tx49_files ; do
301 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
302 if [ -n "${verbose}" ] ; then
303 echo Keeping tx49 stuff in $i
304 fi
305 fi
306 done
307 else
308 for i in * ; do
309 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Removing traces of \"tx49\" from $i...
312 fi
313 cp $i new
314 sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
315 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
316 if [ -n "${verbose}" ] ; then
317 echo Caching $i in .Recover...
318 fi
319 mv $i .Recover
320 fi
321 mv new $i
322 fi
323 done
324 fi
325
326 tic80_files="obj-coff.h"
327 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
328 for i in $tic80_files ; do
329 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
330 if [ -n "${verbose}" ] ; then
331 echo Keeping tic80 stuff in $i
332 fi
333 fi
334 done
335 else
336 for i in * ; do
337 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
338 if [ -n "${verbose}" ] ; then
339 echo Removing traces of \"tic80\" from $i...
340 fi
341 cp $i new
342 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
343 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
344 if [ -n "${verbose}" ] ; then
345 echo Caching $i in .Recover...
346 fi
347 mv $i .Recover
348 fi
349 mv new $i
350 fi
351 done
352 fi
353
354 v850e_files="tc-v850.c tc-v850.h"
355 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
356 for i in $v850e_files ; do
357 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
358 if [ -n "${verbose}" ] ; then
359 echo Keeping v850e stuff in $i
360 fi
361 fi
362 done
363 else
364 for i in $v850e_files ; do
365 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
366 if [ -n "${verbose}" ] ; then
367 echo Removing traces of \"v850e\" from $i...
368 fi
369 cp $i new
370 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
371 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
372 if [ -n "${verbose}" ] ; then
373 echo Caching $i in .Recover...
374 fi
375 mv $i .Recover
376 fi
377 mv new $i
378 fi
379 done
380 fi
381
382 m32rx_files="tc-m32r.c tc-m32r.h"
383 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
384 for i in $m32rx_files ; do
385 if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then
386 if [ -n "${verbose}" ] ; then
387 echo Keeping m32rx stuff in $i
388 fi
389 fi
390 done
391 else
392 for i in $m32rx_files ; do
393 if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then
394 if [ -n "${verbose}" ] ; then
395 echo Removing traces of \"m32rx\" from $i...
396 fi
397 cp $i new
398 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
399 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
400 if [ -n "${verbose}" ] ; then
401 echo Caching $i in .Recover...
402 fi
403 mv $i .Recover
404 fi
405 mv new $i
406 fi
407 done
408 fi
409 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
410 for i in $m32rx_files ; do
411 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
412 if [ -n "${verbose}" ] ; then
413 echo Keeping m32rx stuff in $i
414 fi
415 fi
416 done
417 else
418 for i in $m32rx_files ; do
419 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
420 if [ -n "${verbose}" ] ; then
421 echo Removing traces of \"m32rx\" from $i...
422 fi
423 cp $i new
424 sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
425 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
426 if [ -n "${verbose}" ] ; then
427 echo Caching $i in .Recover...
428 fi
429 mv $i .Recover
430 fi
431 mv new $i
432 fi
433 done
434 fi
435
436 vr4320_files="tc-mips.c"
437 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
438 for i in $vr4320_files ; do
439 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
440 if [ -n "${verbose}" ] ; then
441 echo Keeping vr4320 stuff in $i
442 fi
443 fi
444 done
445 else
446 for i in $vr4320_files ; do
447 if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
448 if [ -n "${verbose}" ] ; then
449 echo Removing traces of \"vr4320\" from $i...
450 fi
451 cp $i new
452 sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new
453 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
454 if [ -n "${verbose}" ] ; then
455 echo Caching $i in .Recover...
456 fi
457 mv $i .Recover
458 fi
459 mv new $i
460 fi
461 done
462 fi
463
464 branchbug4011_files="tc-mips.c"
465 if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
466 for i in $branchbug4011_files ; do
467 if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
468 if [ -n "${verbose}" ] ; then
469 echo Keeping branchbug4011 stuff in $i
470 fi
471 fi
472 done
473 else
474 for i in $branchbug4011_files ; do
475 if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
476 if [ -n "${verbose}" ] ; then
477 echo Removing traces of \"branchbug4011\" from $i...
478 fi
479 cp $i new
480 sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new
481 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
482 if [ -n "${verbose}" ] ; then
483 echo Caching $i in .Recover...
484 fi
485 mv $i .Recover
486 fi
487 mv new $i
488 fi
489 done
490 fi
491
492 for i in * ; do
493 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
494 echo '***' Some mentions of Sanitize are still left in gas/config/$i! 1>&2
495 fi
496 done
497
498 # eof
This page took 0.041687 seconds and 5 git commands to generate.