Add sh3 et.al. to SH arch table.
[binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
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 d30v_files="cpu-d30v.c elf32-d30v.c"
19
20 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22 else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24 fi
25
26 v850_files="elf32-v850.c"
27
28 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
29 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
30 else
31 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
32 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
33 else
34 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
35 keep_these_too="cpu-v850.c ${v850_files} ${keep_these_too}"
36 else
37 lose_these_too="cpu-v850.c ${v850_files} ${lose_these_too}"
38 fi
39 fi
40 fi
41
42 tic80_files="cpu-tic80.c coff-tic80.c"
43
44 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46 else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48 fi
49
50 # All files listed between the "Things-to-keep:" line and the
51 # "Files-to-sed:" line will be kept. All other files will be removed.
52 # Directories listed in this section will have their own Sanitize
53 # called. Directories not listed will be removed in their entirety
54 # with rm -rf.
55
56 Things-to-keep:
57
58 COPYING
59 ChangeLog
60 ChangeLog.1
61 ChangeLog.2
62 Makefile.am
63 Makefile.in
64 PORTING
65 README
66 TODO
67 acconfig.h
68 acinclude.m4
69 aclocal.m4
70 aix386-core.c
71 aout-adobe.c
72 aout-arm.c
73 aout-encap.c
74 aout-ns32k.c
75 aout-sparcle.c
76 aout-target.h
77 aout0.c
78 aout32.c
79 aout64.c
80 aoutf1.h
81 aoutx.h
82 archive.c
83 archures.c
84 bfd-in.h
85 bfd-in2.h
86 bfd.c
87 binary.c
88 bout.c
89 cache.c
90 cf-i386lynx.c
91 cf-m68klynx.c
92 cf-sparclynx.c
93 cisco-core.c
94 coff-a29k.c
95 coff-alpha.c
96 coff-apollo.c
97 coff-arm.c
98 coff-aux.c
99 coff-go32.c
100 coff-h8300.c
101 coff-h8500.c
102 coff-i386.c
103 coff-i860.c
104 coff-i960.c
105 coff-m68k.c
106 coff-m88k.c
107 coff-mips.c
108 coff-pmac.c
109 coff-ppc.c
110 coff-rs6000.c
111 coff-sh.c
112 coff-sparc.c
113 coff-stgo32.c
114 coff-svm68k.c
115 coff-u68k.c
116 coff-we32k.c
117 coff-w65.c
118 coff-z8k.c
119 coffcode.h
120 coffgen.c
121 cofflink.c
122 coffswap.h
123 config.bfd
124 config.in
125 configure
126 configure.bat
127 configure.com
128 configure.host
129 configure.in
130 corefile.c
131 cpu-a29k.c
132 cpu-alpha.c
133 cpu-arc.c
134 cpu-arm.c
135 cpu-d10v.c
136 cpu-h8300.c
137 cpu-h8500.c
138 cpu-hppa.c
139 cpu-i386.c
140 cpu-i860.c
141 cpu-i960.c
142 cpu-m32r.c
143 cpu-m68k.c
144 cpu-m88k.c
145 cpu-mips.c
146 cpu-m10200.c
147 cpu-m10300.c
148 cpu-ns32k.c
149 cpu-powerpc.c
150 cpu-rs6000.c
151 cpu-sh.c
152 cpu-sparc.c
153 cpu-vax.c
154 cpu-we32k.c
155 cpu-w65.c
156 cpu-z8k.c
157 demo64.c
158 dep-in.sed
159 doc
160 ecoff.c
161 ecofflink.c
162 ecoffswap.h
163 elf-bfd.h
164 elf.c
165 elf32-arc.c
166 elf32-d10v.c
167 elf32-gen.c
168 elf32-hppa.c
169 elf32-hppa.h
170 elf32-i386.c
171 elf32-i860.c
172 elf32-m32r.c
173 elf32-m68k.c
174 elf32-m88k.c
175 elf32-mips.c
176 elf-m10200.c
177 elf-m10300.c
178 elf32-ppc.c
179 elf32-sh.c
180 elf32-sparc.c
181 elf32.c
182 elf64-alpha.c
183 elf64-gen.c
184 elf64-mips.c
185 elf64-sparc.c
186 elf64.c
187 elfxx-target.h
188 elfcode.h
189 elfcore.h
190 elflink.c
191 elflink.h
192 evax.h
193 evax-alpha.c
194 evax-egsd.c
195 evax-emh.c
196 evax-etir.c
197 evax-misc.c
198 filemode.c
199 format.c
200 freebsd.h
201 gen-aout.c
202 genlink.h
203 go32stub.h
204 hash.c
205 host-aout.c
206 hosts
207 hp300bsd.c
208 hp300hpux.c
209 hppa_stubs.h
210 hppabsd-core.c
211 hpux-core.c
212 i386aout.c
213 i386bsd.c
214 i386dynix.c
215 i386freebsd.c
216 i386linux.c
217 i386netbsd.c
218 i386lynx.c
219 i386mach3.c
220 i386msdos.c
221 i386os9k.c
222 ieee.c
223 ihex.c
224 init.c
225 irix-core.c
226 libaout.h
227 libbfd-in.h
228 libbfd.c
229 libbfd.h
230 libcoff-in.h
231 libcoff.h
232 libecoff.h
233 libhppa.h
234 libieee.h
235 libnlm.h
236 liboasys.h
237 linker.c
238 lynx-core.c
239 m68k4knetbsd.c
240 m68klinux.c
241 m68klynx.c
242 m68knetbsd.c
243 m88kmach3.c
244 makefile.dos
245 makefile.vms
246 mipsbsd.c
247 mpw-config.in
248 mpw-make.sed
249 newsos3.c
250 netbsd-core.c
251 netbsd.h
252 nlm-target.h
253 nlm.c
254 nlm32-alpha.c
255 nlm32-i386.c
256 nlm32-ppc.c
257 nlm32-sparc.c
258 nlm32.c
259 nlm64.c
260 nlmcode.h
261 nlmswap.h
262 ns32k.h
263 ns32knetbsd.c
264 oasys.c
265 opncls.c
266 osf-core.c
267 pc532-mach.c
268 pe-arm.c
269 pe-i386.c
270 pe-ppc.c
271 pei-arm.c
272 pei-i386.c
273 pei-ppc.c
274 peicode.h
275 ppcboot.c
276 ptrace-core.c
277 reloc.c
278 reloc16.c
279 riscix.c
280 rs6000-core.c
281 section.c
282 som.c
283 som.h
284 sparclinux.c
285 sparclynx.c
286 sparcnetbsd.c
287 srec.c
288 stabs.c
289 stab-syms.c
290 stamp-h.in
291 sunos.c
292 syms.c
293 sysdep.h
294 targets.c
295 targmatch.sed
296 tekhex.c
297 trad-core.c
298 versados.c
299 xcofflink.c
300
301 Things-to-lose:
302
303
304 Do-last:
305
306 d30v_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
307 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
308 for i in $d30v_files ; do
309 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
310 if [ -n "${verbose}" ] ; then
311 echo Keeping d30v stuff in $i
312 fi
313 fi
314 done
315 else
316 for i in $d30v_files ; do
317 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
318 if [ -n "${verbose}" ] ; then
319 echo Removing traces of \"d30v\" from $i...
320 fi
321 cp $i new
322 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
323 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
324 if [ -n "${verbose}" ] ; then
325 echo Caching $i in .Recover...
326 fi
327 mv $i .Recover
328 fi
329 mv new $i
330 fi
331 done
332 fi
333
334 v850_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h elf32-v850.c"
335 v850e_files="ChangeLog ChangeLog.2 Makefile.in Makefile.am archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
336 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
337 for i in $v850_files ; do
338 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
339 if [ -n "${verbose}" ] ; then
340 echo Keeping v850eq stuff in $i
341 fi
342 fi
343 done
344 else
345 for i in $v850_files ; do
346 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
347 if [ -n "${verbose}" ] ; then
348 echo Removing traces of \"v850eq\" from $i...
349 fi
350 cp $i new
351 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
352 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
353 if [ -n "${verbose}" ] ; then
354 echo Caching $i in .Recover...
355 fi
356 mv $i .Recover
357 fi
358 mv new $i
359 fi
360 done
361 fi
362 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
363 for i in $v850_files ; do
364 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
365 if [ -n "${verbose}" ] ; then
366 echo Keeping v850e stuff in $i
367 fi
368 fi
369 done
370 else
371 for i in $v850_files ; do
372 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
373 if [ -n "${verbose}" ] ; then
374 echo Removing traces of \"v850e\" from $i...
375 fi
376 cp $i new
377 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
378 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
379 if [ -n "${verbose}" ] ; then
380 echo Caching $i in .Recover...
381 fi
382 mv $i .Recover
383 fi
384 mv new $i
385 fi
386 done
387 fi
388
389 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
390 for i in $v850_files ; do
391 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
392 if [ -n "${verbose}" ] ; then
393 echo Keeping v850 stuff in $i
394 fi
395 fi
396 done
397 else
398 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
399 true
400 else
401 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
402 true
403 else
404 for i in $v850e_files ; do
405 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
406 if [ -n "${verbose}" ] ; then
407 echo Removing traces of \"v850\" from $i...
408 fi
409 cp $i new
410 sed '/start\-sanitize\-v850/,/end\-sanitize\-v850/d' < $i > new
411 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
412 if [ -n "${verbose}" ] ; then
413 echo Caching $i in .Recover...
414 fi
415 mv $i .Recover
416 fi
417 mv new $i
418 fi
419 done
420 fi
421 fi
422 fi
423
424 r5900_files="ChangeLog config.bfd"
425 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
426 for i in $r5900_files ; do
427 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
428 if [ -n "${verbose}" ] ; then
429 echo Keeping r5900 stuff in $i
430 fi
431 fi
432 done
433 else
434 for i in $r5900_files ; do
435 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
436 if [ -n "${verbose}" ] ; then
437 echo Removing traces of \"r5900\" from $i...
438 fi
439 cp $i new
440 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
441 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
442 if [ -n "${verbose}" ] ; then
443 echo Caching $i in .Recover...
444 fi
445 mv $i .Recover
446 fi
447 mv new $i
448 fi
449 done
450 fi
451
452 sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c"
453 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
454 for i in $sh4_files ; do
455 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
456 if [ -n "${verbose}" ] ; then
457 echo Keeping sh4 stuff in $i
458 fi
459 fi
460 done
461 else
462 for i in $sh4_files ; do
463 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
464 if [ -n "${verbose}" ] ; then
465 echo Removing traces of \"sh4\" from $i...
466 fi
467 cp $i new
468 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
469 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
470 if [ -n "${verbose}" ] ; then
471 echo Caching $i in .Recover...
472 fi
473 mv $i .Recover
474 fi
475 mv new $i
476 fi
477 done
478 fi
479
480 tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
481 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
482 for i in $tic80_files ; do
483 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
484 if [ -n "${verbose}" ] ; then
485 echo Keeping tic80 stuff in $i
486 fi
487 fi
488 done
489 else
490 for i in $tic80_files ; do
491 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
492 if [ -n "${verbose}" ] ; then
493 echo Removing traces of \"tic80\" from $i...
494 fi
495 cp $i new
496 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
497 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
498 if [ -n "${verbose}" ] ; then
499 echo Caching $i in .Recover...
500 fi
501 mv $i .Recover
502 fi
503 mv new $i
504 fi
505 done
506 fi
507
508 gm_files="ChangeLog ChangeLog.2 config.bfd"
509 if ( echo $* | grep keep\-gm > /dev/null ) ; then
510 for i in $gm_files ; do
511 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
512 if [ -n "${verbose}" ] ; then
513 echo Keeping gm stuff in $i
514 fi
515 fi
516 done
517 else
518 for i in $gm_files ; do
519 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
520 if [ -n "${verbose}" ] ; then
521 echo Removing traces of \"gm\" from $i...
522 fi
523 cp $i new
524 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
525 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
526 if [ -n "${verbose}" ] ; then
527 echo Caching $i in .Recover...
528 fi
529 mv $i .Recover
530 fi
531 mv new $i
532 fi
533 done
534 fi
535
536 for i in * ; do
537 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
538 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
539 fi
540 done
541
542 # End of file.