* libcoff-in.h (struct coff_final_link_info): Add boolean
[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
05cedcf6
DE
18arc_files="cpu-arc.c elf32-arc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
fd8d7c31
MH
26d30v_files="cpu-d30v.c elf32-d30v.c"
27
28if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32fi
33
71bcbd25 34v850_files="cpu-v850.c elf32-v850.c"
0c1d95c7
C
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
39 lose_these_too="${v850_files} ${lose_these_too}"
40fi
41
2a0a42d3
FF
42tic80_files="cpu-tic80.c coff-tic80.c"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
49
08942d11
RP
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
56Things-to-keep:
87756e15 57
08942d11
RP
58COPYING
59ChangeLog
ceeca31c 60ChangeLog.1
1613e075 61ChangeLog.2
08942d11 62Makefile.in
c3e964b9 63PORTING
b8760145 64README
08942d11 65TODO
8c1891af 66VERSION
b7577823 67acconfig.h
f515fb2f 68aclocal.m4
60ac749c 69aix386-core.c
c3e964b9 70aout-adobe.c
ff15324f 71aout-arm.c
c3e964b9 72aout-encap.c
56fbe889 73aout-ns32k.c
0cd98b92 74aout-sparcle.c
c3e964b9 75aout-target.h
77d11284 76aout0.c
08942d11
RP
77aout32.c
78aout64.c
79aoutf1.h
08942d11
RP
80aoutx.h
81archive.c
82archures.c
901c5bfd 83bfd-in.h
b9653d81 84bfd-in2.h
08942d11 85bfd.c
c768bd3f 86binary.c
08942d11
RP
87bout.c
88cache.c
e3b5bfa8
SS
89cf-i386lynx.c
90cf-m68klynx.c
91cf-sparclynx.c
5d70e4d1 92cisco-core.c
156e3852 93coff-a29k.c
c3e964b9 94coff-alpha.c
97eb2f0c 95coff-apollo.c
d19df9b5
ILT
96coff-arm.c
97coff-aux.c
c06e55d9 98coff-go32.c
71e34032 99coff-h8300.c
ff975a2c 100coff-h8500.c
156e3852 101coff-i386.c
cf587de8 102coff-i860.c
156e3852 103coff-i960.c
c3e964b9 104coff-m68k.c
156e3852
JG
105coff-m88k.c
106coff-mips.c
63c67f3c 107coff-pmac.c
8d2a09b0 108coff-ppc.c
156e3852 109coff-rs6000.c
9faacb92 110coff-sh.c
e3b5bfa8 111coff-sparc.c
ac388f2a 112coff-svm68k.c
df61743d 113coff-u68k.c
c7551f76 114coff-we32k.c
d468a149 115coff-w65.c
d41ab714 116coff-z8k.c
08942d11 117coffcode.h
075caafd 118coffgen.c
69645d10 119cofflink.c
075caafd 120coffswap.h
14616002 121config.bfd
936b870c 122config.in
7c1a9ec3 123configure
13b351cc 124configure.bat
0f854557 125configure.com
5a5fa368 126configure.host
c3e964b9 127configure.in
d9e771e3 128corefile.c
c3e964b9
FF
129cpu-a29k.c
130cpu-alpha.c
6c3bc2b8 131cpu-arm.c
a3c5b9a4 132cpu-d10v.c
c3e964b9
FF
133cpu-h8300.c
134cpu-h8500.c
135cpu-hppa.c
136cpu-i386.c
cf587de8 137cpu-i860.c
c3e964b9 138cpu-i960.c
37bdd624 139cpu-m32r.c
c3e964b9
FF
140cpu-m68k.c
141cpu-m88k.c
142cpu-mips.c
7a68d1f7
ILT
143cpu-m10200.c
144cpu-m10300.c
e26e4fbc 145cpu-ns32k.c
384c1791 146cpu-powerpc.c
c3e964b9
FF
147cpu-rs6000.c
148cpu-sh.c
149cpu-sparc.c
150cpu-vax.c
151cpu-we32k.c
d468a149 152cpu-w65.c
c3e964b9 153cpu-z8k.c
08942d11 154demo64.c
97eb2f0c 155dep-in.sed
c3e964b9 156doc
dae31cf5 157ecoff.c
71efdf83 158ecofflink.c
dae31cf5 159ecoffswap.h
6ab826bd 160elf-bfd.h
cef91d75 161elf.c
a3c5b9a4 162elf32-d10v.c
d39d83c1 163elf32-gen.c
c268b400
KR
164elf32-hppa.c
165elf32-hppa.h
4743848f
KR
166elf32-i386.c
167elf32-i860.c
37bdd624 168elf32-m32r.c
4743848f 169elf32-m68k.c
2c4f2c72
JK
170elf32-m88k.c
171elf32-mips.c
7a68d1f7
ILT
172elf-m10200.c
173elf-m10300.c
45ccfd58 174elf32-ppc.c
c86158e5 175elf32-sh.c
8d936d1f 176elf32-sparc.c
4743848f 177elf32.c
e8f46717 178elf64-alpha.c
d39d83c1 179elf64-gen.c
d1bf45aa 180elf64-mips.c
66599384 181elf64-sparc.c
4bf86ecb 182elf64.c
4b18dd1e 183elfxx-target.h
ef7e172e 184elfcode.h
ede4eed4
KR
185elfcore.h
186elflink.c
187elflink.h
c3d8e071
ILT
188evax.h
189evax-alpha.c
190evax-egsd.c
191evax-emh.c
192evax-etir.c
193evax-misc.c
08942d11 194filemode.c
6f715d66 195format.c
767f22d5 196freebsd.h
608de555 197gen-aout.c
da6b2d99
ILT
198genlink.h
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
08942d11 285sunos.c
6f715d66 286syms.c
b7577823 287sysdep.h
08942d11 288targets.c
dee99794 289targmatch.sed
a14b2941 290tekhex.c
08942d11 291trad-core.c
c3c112fc 292versados.c
dd984644 293xcofflink.c
08942d11 294
87756e15
RP
295Things-to-lose:
296
775d4a40 297
08942d11
RP
298Do-last:
299
2ec2c9f4 300arc_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
05cedcf6
DE
301if ( echo $* | grep keep\-arc > /dev/null ) ; then
302 for i in $arc_files ; do
303 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Keeping arc stuff in $i
306 fi
307 fi
308 done
309else
310 for i in $arc_files ; do
311 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
312 if [ -n "${verbose}" ] ; then
313 echo Removing traces of \"arc\" from $i...
314 fi
315 cp $i new
316 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
317 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50bd50d4
MH
318 if [ -n "${verbose}" ] ; then
319 echo Caching $i in .Recover...
320 fi
321 mv $i .Recover
322 fi
323 mv new $i
324 fi
325 done
326fi
327
fd8d7c31
MH
328d30v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
329if ( echo $* | grep keep\-d30v > /dev/null ) ; then
330 for i in $d30v_files ; do
331 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
332 if [ -n "${verbose}" ] ; then
333 echo Keeping d30v stuff in $i
334 fi
335 fi
336 done
337else
338 for i in $d30v_files ; do
339 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
340 if [ -n "${verbose}" ] ; then
341 echo Removing traces of \"d30v\" from $i...
342 fi
343 cp $i new
344 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
345 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
346 if [ -n "${verbose}" ] ; then
347 echo Caching $i in .Recover...
348 fi
349 mv $i .Recover
350 fi
351 mv new $i
352 fi
353 done
354fi
355
356v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
357if ( echo $* | grep keep\-v850 > /dev/null ) ; then
358 for i in $v850_files ; do
359 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
360 if [ -n "${verbose}" ] ; then
361 echo Keeping v850 stuff in $i
362 fi
363 fi
364 done
365else
366 for i in $v850_files ; do
367 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
368 if [ -n "${verbose}" ] ; then
369 echo Removing traces of \"v850\" from $i...
370 fi
371 cp $i new
372 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
373 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
374 if [ -n "${verbose}" ] ; then
375 echo Caching $i in .Recover...
376 fi
377 mv $i .Recover
378 fi
379 mv new $i
380 fi
381 done
382fi
383
276c2d7d
GRK
384r5900_files="ChangeLog config.bfd"
385if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
386 for i in $r5900_files ; do
387 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
388 if [ -n "${verbose}" ] ; then
389 echo Keeping r5900 stuff in $i
390 fi
391 fi
392 done
393else
394 for i in $r5900_files ; do
395 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
396 if [ -n "${verbose}" ] ; then
397 echo Removing traces of \"r5900\" from $i...
398 fi
399 cp $i new
400 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
401 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
402 if [ -n "${verbose}" ] ; then
403 echo Caching $i in .Recover...
404 fi
405 mv $i .Recover
406 fi
407 mv new $i
408 fi
409 done
410fi
411
84fd6e7e 412tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h"
2a0a42d3
FF
413if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
414 for i in $tic80_files ; do
415 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
416 if [ -n "${verbose}" ] ; then
417 echo Keeping tic80 stuff in $i
418 fi
419 fi
420 done
421else
422 for i in $tic80_files ; do
423 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
424 if [ -n "${verbose}" ] ; then
425 echo Removing traces of \"tic80\" from $i...
426 fi
427 cp $i new
428 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
429 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
430 if [ -n "${verbose}" ] ; then
431 echo Caching $i in .Recover...
432 fi
433 mv $i .Recover
434 fi
435 mv new $i
436 fi
437 done
438fi
439
d6d44ef9
SG
440gm_files="ChangeLog ChangeLog.2 config.bfd"
441if ( echo $* | grep keep\-gm > /dev/null ) ; then
442 for i in $gm_files ; do
443 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
444 if [ -n "${verbose}" ] ; then
445 echo Keeping gm stuff in $i
446 fi
447 fi
448 done
449else
450 for i in $gm_files ; do
451 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
452 if [ -n "${verbose}" ] ; then
453 echo Removing traces of \"gm\" from $i...
454 fi
455 cp $i new
456 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
457 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
458 if [ -n "${verbose}" ] ; then
459 echo Caching $i in .Recover...
460 fi
461 mv $i .Recover
462 fi
463 mv new $i
464 fi
465 done
466fi
467
5c680afd
MT
468for i in * ; do
469 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
470 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
471 fi
472done
473
08942d11 474# End of file.
This page took 0.334753 seconds and 4 git commands to generate.