Add support for parallel instructions.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
CommitLineData
8b0f1c20 1# .Sanitize for devo/bfd.
08942d11 2
a92c5906 3# Each directory to survive its way into a release will need a file
08942d11
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
8b0f1c20 14# done in this directory.
08942d11
RP
15
16Do-first:
17
fd8d7c31
MH
18d30v_files="cpu-d30v.c elf32-d30v.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
2a0a42d3
FF
26tic80_files="cpu-tic80.c coff-tic80.c"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
20b2c808
DE
34sky_files="cpu-txvu.c elf32-txvu.c"
35
36if ( echo $* | grep keep\-sky > /dev/null ) ; then
37 keep_these_too="${sky_files} ${keep_these_too}"
38else
39 lose_these_too="${sky_files} ${lose_these_too}"
40fi
41
08942d11
RP
42# All files listed between the "Things-to-keep:" line and the
43# "Files-to-sed:" line will be kept. All other files will be removed.
44# Directories listed in this section will have their own Sanitize
45# called. Directories not listed will be removed in their entirety
46# with rm -rf.
47
48Things-to-keep:
87756e15 49
08942d11
RP
50COPYING
51ChangeLog
ceeca31c 52ChangeLog.1
1613e075 53ChangeLog.2
c0734708 54Makefile.am
08942d11 55Makefile.in
c3e964b9 56PORTING
b8760145 57README
08942d11 58TODO
b7577823 59acconfig.h
c0734708 60acinclude.m4
f515fb2f 61aclocal.m4
60ac749c 62aix386-core.c
c3e964b9 63aout-adobe.c
ff15324f 64aout-arm.c
c3e964b9 65aout-encap.c
56fbe889 66aout-ns32k.c
0cd98b92 67aout-sparcle.c
c3e964b9 68aout-target.h
77d11284 69aout0.c
08942d11
RP
70aout32.c
71aout64.c
72aoutf1.h
08942d11
RP
73aoutx.h
74archive.c
75archures.c
901c5bfd 76bfd-in.h
b9653d81 77bfd-in2.h
08942d11 78bfd.c
c768bd3f 79binary.c
08942d11
RP
80bout.c
81cache.c
e3b5bfa8
SS
82cf-i386lynx.c
83cf-m68klynx.c
84cf-sparclynx.c
5d70e4d1 85cisco-core.c
156e3852 86coff-a29k.c
c3e964b9 87coff-alpha.c
97eb2f0c 88coff-apollo.c
d19df9b5
ILT
89coff-arm.c
90coff-aux.c
c06e55d9 91coff-go32.c
71e34032 92coff-h8300.c
ff975a2c 93coff-h8500.c
156e3852 94coff-i386.c
cf587de8 95coff-i860.c
156e3852 96coff-i960.c
c3e964b9 97coff-m68k.c
156e3852
JG
98coff-m88k.c
99coff-mips.c
63c67f3c 100coff-pmac.c
8d2a09b0 101coff-ppc.c
156e3852 102coff-rs6000.c
9faacb92 103coff-sh.c
e3b5bfa8 104coff-sparc.c
2af5a7e4 105coff-stgo32.c
ac388f2a 106coff-svm68k.c
df61743d 107coff-u68k.c
c7551f76 108coff-we32k.c
d468a149 109coff-w65.c
d41ab714 110coff-z8k.c
08942d11 111coffcode.h
075caafd 112coffgen.c
69645d10 113cofflink.c
075caafd 114coffswap.h
14616002 115config.bfd
936b870c 116config.in
7c1a9ec3 117configure
13b351cc 118configure.bat
0f854557 119configure.com
5a5fa368 120configure.host
c3e964b9 121configure.in
d9e771e3 122corefile.c
c3e964b9
FF
123cpu-a29k.c
124cpu-alpha.c
76af94b9 125cpu-arc.c
6c3bc2b8 126cpu-arm.c
a3c5b9a4 127cpu-d10v.c
c3e964b9
FF
128cpu-h8300.c
129cpu-h8500.c
130cpu-hppa.c
131cpu-i386.c
cf587de8 132cpu-i860.c
c3e964b9 133cpu-i960.c
37bdd624 134cpu-m32r.c
c3e964b9
FF
135cpu-m68k.c
136cpu-m88k.c
137cpu-mips.c
7a68d1f7
ILT
138cpu-m10200.c
139cpu-m10300.c
e26e4fbc 140cpu-ns32k.c
384c1791 141cpu-powerpc.c
c3e964b9
FF
142cpu-rs6000.c
143cpu-sh.c
144cpu-sparc.c
15d82b26 145cpu-v850.c
c3e964b9
FF
146cpu-vax.c
147cpu-we32k.c
d468a149 148cpu-w65.c
c3e964b9 149cpu-z8k.c
08942d11 150demo64.c
97eb2f0c 151dep-in.sed
c3e964b9 152doc
6ac2511d 153dwarf2.c
dae31cf5 154ecoff.c
71efdf83 155ecofflink.c
dae31cf5 156ecoffswap.h
6ab826bd 157elf-bfd.h
cef91d75 158elf.c
76af94b9 159elf32-arc.c
a3c5b9a4 160elf32-d10v.c
d39d83c1 161elf32-gen.c
c268b400
KR
162elf32-hppa.c
163elf32-hppa.h
4743848f
KR
164elf32-i386.c
165elf32-i860.c
37bdd624 166elf32-m32r.c
4743848f 167elf32-m68k.c
2c4f2c72
JK
168elf32-m88k.c
169elf32-mips.c
7a68d1f7
ILT
170elf-m10200.c
171elf-m10300.c
45ccfd58 172elf32-ppc.c
c86158e5 173elf32-sh.c
8d936d1f 174elf32-sparc.c
15d82b26 175elf32-v850.c
4743848f 176elf32.c
e8f46717 177elf64-alpha.c
d39d83c1 178elf64-gen.c
d1bf45aa 179elf64-mips.c
66599384 180elf64-sparc.c
4bf86ecb 181elf64.c
4b18dd1e 182elfxx-target.h
ef7e172e 183elfcode.h
ede4eed4
KR
184elfcore.h
185elflink.c
186elflink.h
c3d8e071
ILT
187evax.h
188evax-alpha.c
189evax-egsd.c
190evax-emh.c
191evax-etir.c
192evax-misc.c
08942d11 193filemode.c
6f715d66 194format.c
767f22d5 195freebsd.h
608de555 196gen-aout.c
da6b2d99 197genlink.h
179ce6e1 198go32stub.h
da6b2d99 199hash.c
08942d11 200host-aout.c
90c7c720 201hosts
c3e964b9 202hp300bsd.c
c268b400 203hp300hpux.c
cef91d75 204hppa_stubs.h
8a71bf96 205hppabsd-core.c
3f933620 206hpux-core.c
b7de6963 207i386aout.c
256b39e0 208i386bsd.c
bdf1b511 209i386dynix.c
767f22d5 210i386freebsd.c
afff60cd 211i386linux.c
a3f7a777 212i386netbsd.c
aef0bd99 213i386lynx.c
890eafc0 214i386mach3.c
7c2c70f3 215i386msdos.c
f8ffa548 216i386os9k.c
08942d11 217ieee.c
ffd15489 218ihex.c
c3e964b9 219init.c
7ce1a446 220irix-core.c
141c97ea 221libaout.h
901c5bfd 222libbfd-in.h
08942d11
RP
223libbfd.c
224libbfd.h
901c5bfd 225libcoff-in.h
08942d11 226libcoff.h
a3b3dbdd 227libecoff.h
76b731f9 228libhppa.h
08942d11 229libieee.h
c3e964b9 230libnlm.h
08942d11 231liboasys.h
da6b2d99 232linker.c
3151f12f 233lynx-core.c
e295a90d 234m68k4knetbsd.c
55626bf0 235m68klinux.c
eefe075d 236m68klynx.c
ec35a1c2 237m68knetbsd.c
56fbe889 238m88kmach3.c
346a6d59 239makefile.dos
c3d8e071 240makefile.vms
044c1ba9 241mipsbsd.c
241d8883 242mpw-config.in
63c67f3c 243mpw-make.sed
08942d11 244newsos3.c
fe16107d 245netbsd-core.c
a3f7a777 246netbsd.h
d1f83f44 247nlm-target.h
c3e964b9 248nlm.c
1bbabdad 249nlm32-alpha.c
8fa7a236 250nlm32-i386.c
7ce8b9d1 251nlm32-ppc.c
38f422db 252nlm32-sparc.c
c3e964b9 253nlm32.c
c3e964b9
FF
254nlm64.c
255nlmcode.h
38f422db 256nlmswap.h
c877bdf1 257ns32k.h
a3f7a777 258ns32knetbsd.c
08942d11
RP
259oasys.c
260opncls.c
4346ee0f 261osf-core.c
56fbe889 262pc532-mach.c
a3444c49 263pe-arm.c
b297038d 264pe-i386.c
8d2a09b0 265pe-ppc.c
4e98461f 266pei-arm.c
b297038d 267pei-i386.c
8d2a09b0 268pei-ppc.c
4e98461f 269peicode.h
0d1fcbbb 270ppcboot.c
c236d8b3 271ptrace-core.c
6f715d66 272reloc.c
075caafd 273reloc16.c
6c3bc2b8 274riscix.c
cf15d9e9 275rs6000-core.c
6f715d66 276section.c
66eca5ee
JK
277som.c
278som.h
5f792743 279sparclinux.c
e3b5bfa8 280sparclynx.c
a3f7a777 281sparcnetbsd.c
08942d11 282srec.c
1726b8f0 283stabs.c
7de245d3 284stab-syms.c
c0734708 285stamp-h.in
08942d11 286sunos.c
6f715d66 287syms.c
b7577823 288sysdep.h
08942d11 289targets.c
dee99794 290targmatch.sed
a14b2941 291tekhex.c
08942d11 292trad-core.c
c3c112fc 293versados.c
dd984644 294xcofflink.c
08942d11 295
87756e15
RP
296Things-to-lose:
297
775d4a40 298
08942d11
RP
299Do-last:
300
a3d2e13b 301d30v_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"
fd8d7c31
MH
302if ( echo $* | grep keep\-d30v > /dev/null ) ; then
303 for i in $d30v_files ; do
304 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
305 if [ -n "${verbose}" ] ; then
306 echo Keeping d30v stuff in $i
307 fi
308 fi
309 done
310else
311 for i in $d30v_files ; do
312 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
313 if [ -n "${verbose}" ] ; then
314 echo Removing traces of \"d30v\" from $i...
315 fi
316 cp $i new
317 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
318 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
319 if [ -n "${verbose}" ] ; then
320 echo Caching $i in .Recover...
321 fi
322 mv $i .Recover
323 fi
324 mv new $i
325 fi
326 done
327fi
328
2cf9a0d0 329v850_files="ChangeLog 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 cpu-v850.c"
def47b53
NC
330if ( echo $* | grep keep\-v850e > /dev/null ) ; then
331 for i in $v850_files ; do
332 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
333 if [ -n "${verbose}" ] ; then
334 echo Keeping v850e stuff in $i
335 fi
336 fi
337 done
338else
339 for i in $v850_files ; do
340 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
341 if [ -n "${verbose}" ] ; then
342 echo Removing traces of \"v850e\" from $i...
343 fi
344 cp $i new
8988d935 345 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
def47b53
NC
346 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
347 if [ -n "${verbose}" ] ; then
348 echo Caching $i in .Recover...
349 fi
350 mv $i .Recover
351 fi
352 mv new $i
353 fi
354 done
355fi
8988d935 356
276c2d7d
GRK
357r5900_files="ChangeLog config.bfd"
358if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
359 for i in $r5900_files ; do
360 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
361 if [ -n "${verbose}" ] ; then
362 echo Keeping r5900 stuff in $i
363 fi
364 fi
365 done
366else
367 for i in $r5900_files ; do
368 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
369 if [ -n "${verbose}" ] ; then
370 echo Removing traces of \"r5900\" from $i...
371 fi
372 cp $i new
373 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
374 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
375 if [ -n "${verbose}" ] ; then
376 echo Caching $i in .Recover...
377 fi
378 mv $i .Recover
379 fi
380 mv new $i
381 fi
382 done
383fi
384
f40d28bf
AC
385sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c"
386if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
387 for i in $sh4_files ; do
388 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
389 if [ -n "${verbose}" ] ; then
390 echo Keeping sh4 stuff in $i
391 fi
392 fi
393 done
394else
395 for i in $sh4_files ; do
396 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
397 if [ -n "${verbose}" ] ; then
398 echo Removing traces of \"sh4\" from $i...
399 fi
400 cp $i new
401 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
402 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
403 if [ -n "${verbose}" ] ; then
404 echo Caching $i in .Recover...
405 fi
406 mv $i .Recover
407 fi
408 mv new $i
409 fi
410 done
411fi
412
a3d2e13b 413tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
414if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
415 for i in $tic80_files ; do
416 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Keeping tic80 stuff in $i
419 fi
420 fi
421 done
422else
423 for i in $tic80_files ; do
424 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
425 if [ -n "${verbose}" ] ; then
426 echo Removing traces of \"tic80\" from $i...
427 fi
428 cp $i new
429 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
430 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
431 if [ -n "${verbose}" ] ; then
432 echo Caching $i in .Recover...
433 fi
434 mv $i .Recover
435 fi
436 mv new $i
437 fi
438 done
439fi
440
d6d44ef9
SG
441gm_files="ChangeLog ChangeLog.2 config.bfd"
442if ( echo $* | grep keep\-gm > /dev/null ) ; then
443 for i in $gm_files ; do
444 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
445 if [ -n "${verbose}" ] ; then
446 echo Keeping gm stuff in $i
447 fi
448 fi
449 done
450else
451 for i in $gm_files ; do
452 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
453 if [ -n "${verbose}" ] ; then
454 echo Removing traces of \"gm\" from $i...
455 fi
456 cp $i new
457 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
458 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
459 if [ -n "${verbose}" ] ; then
460 echo Caching $i in .Recover...
461 fi
462 mv $i .Recover
463 fi
464 mv new $i
465 fi
466 done
467fi
468
c02ed6a8
AC
469vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c"
470if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
471 for i in $vr5400_files ; do
472 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
473 if [ -n "${verbose}" ] ; then
474 echo Keeping vr5400 stuff in $i
475 fi
476 fi
477 done
478else
479 for i in $vr5400_files ; do
480 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
481 if [ -n "${verbose}" ] ; then
482 echo Removing traces of \"vr5400\" from $i...
483 fi
484 cp $i new
485 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
486 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
487 if [ -n "${verbose}" ] ; then
488 echo Caching $i in .Recover...
489 fi
490 mv $i .Recover
491 fi
492 mv new $i
493 fi
494 done
495fi
496
a3240f68
NC
497m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
498if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
499 for i in $m32rx_files ; do
500 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
501 if [ -n "${verbose}" ] ; then
502 echo Keeping m32rx stuff in $i
503 fi
504 fi
505 done
506else
507 for i in $m32rx_files ; do
508 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
509 if [ -n "${verbose}" ] ; then
510 echo Removing traces of \"m32rx\" from $i...
511 fi
512 cp $i new
513 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
514 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
515 if [ -n "${verbose}" ] ; then
516 echo Caching $i in .Recover...
517 fi
518 mv $i .Recover
519 fi
520 mv new $i
521 fi
522 done
523fi
524
20b2c808
DE
525sky_files="ChangeLog Makefile.in Makefile.am archures.c elf.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h libbfd.h"
526if ( echo $* | grep keep\-sky > /dev/null ) ; then
527 for i in $sky_files ; do
528 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
529 if [ -n "${verbose}" ] ; then
530 echo Keeping sky stuff in $i
531 fi
532 fi
533 done
534else
535 for i in $sky_files ; do
536 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
537 if [ -n "${verbose}" ] ; then
538 echo Removing traces of \"sky\" from $i...
539 fi
540 cp $i new
541 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
542 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
543 if [ -n "${verbose}" ] ; then
544 echo Caching $i in .Recover...
545 fi
546 mv $i .Recover
547 fi
548 mv new $i
549 fi
550 done
551fi
552
5c680afd
MT
553for i in * ; do
554 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
555 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
556 fi
557done
558
08942d11 559# End of file.
This page took 0.233771 seconds and 4 git commands to generate.