* coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
[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
179ce6e1 112coff-stubgo32.c
ac388f2a 113coff-svm68k.c
df61743d 114coff-u68k.c
c7551f76 115coff-we32k.c
d468a149 116coff-w65.c
d41ab714 117coff-z8k.c
08942d11 118coffcode.h
075caafd 119coffgen.c
69645d10 120cofflink.c
075caafd 121coffswap.h
14616002 122config.bfd
936b870c 123config.in
7c1a9ec3 124configure
13b351cc 125configure.bat
0f854557 126configure.com
5a5fa368 127configure.host
c3e964b9 128configure.in
d9e771e3 129corefile.c
c3e964b9
FF
130cpu-a29k.c
131cpu-alpha.c
6c3bc2b8 132cpu-arm.c
a3c5b9a4 133cpu-d10v.c
c3e964b9
FF
134cpu-h8300.c
135cpu-h8500.c
136cpu-hppa.c
137cpu-i386.c
cf587de8 138cpu-i860.c
c3e964b9 139cpu-i960.c
37bdd624 140cpu-m32r.c
c3e964b9
FF
141cpu-m68k.c
142cpu-m88k.c
143cpu-mips.c
7a68d1f7
ILT
144cpu-m10200.c
145cpu-m10300.c
e26e4fbc 146cpu-ns32k.c
384c1791 147cpu-powerpc.c
c3e964b9
FF
148cpu-rs6000.c
149cpu-sh.c
150cpu-sparc.c
151cpu-vax.c
152cpu-we32k.c
d468a149 153cpu-w65.c
c3e964b9 154cpu-z8k.c
08942d11 155demo64.c
97eb2f0c 156dep-in.sed
c3e964b9 157doc
dae31cf5 158ecoff.c
71efdf83 159ecofflink.c
dae31cf5 160ecoffswap.h
6ab826bd 161elf-bfd.h
cef91d75 162elf.c
a3c5b9a4 163elf32-d10v.c
d39d83c1 164elf32-gen.c
c268b400
KR
165elf32-hppa.c
166elf32-hppa.h
4743848f
KR
167elf32-i386.c
168elf32-i860.c
37bdd624 169elf32-m32r.c
4743848f 170elf32-m68k.c
2c4f2c72
JK
171elf32-m88k.c
172elf32-mips.c
7a68d1f7
ILT
173elf-m10200.c
174elf-m10300.c
45ccfd58 175elf32-ppc.c
c86158e5 176elf32-sh.c
8d936d1f 177elf32-sparc.c
4743848f 178elf32.c
e8f46717 179elf64-alpha.c
d39d83c1 180elf64-gen.c
d1bf45aa 181elf64-mips.c
66599384 182elf64-sparc.c
4bf86ecb 183elf64.c
4b18dd1e 184elfxx-target.h
ef7e172e 185elfcode.h
ede4eed4
KR
186elfcore.h
187elflink.c
188elflink.h
c3d8e071
ILT
189evax.h
190evax-alpha.c
191evax-egsd.c
192evax-emh.c
193evax-etir.c
194evax-misc.c
08942d11 195filemode.c
6f715d66 196format.c
767f22d5 197freebsd.h
608de555 198gen-aout.c
da6b2d99 199genlink.h
179ce6e1 200go32stub.h
da6b2d99 201hash.c
08942d11 202host-aout.c
90c7c720 203hosts
c3e964b9 204hp300bsd.c
c268b400 205hp300hpux.c
cef91d75 206hppa_stubs.h
8a71bf96 207hppabsd-core.c
3f933620 208hpux-core.c
b7de6963 209i386aout.c
256b39e0 210i386bsd.c
bdf1b511 211i386dynix.c
767f22d5 212i386freebsd.c
afff60cd 213i386linux.c
a3f7a777 214i386netbsd.c
aef0bd99 215i386lynx.c
890eafc0 216i386mach3.c
7c2c70f3 217i386msdos.c
f8ffa548 218i386os9k.c
08942d11 219ieee.c
ffd15489 220ihex.c
c3e964b9 221init.c
7ce1a446 222irix-core.c
141c97ea 223libaout.h
901c5bfd 224libbfd-in.h
08942d11
RP
225libbfd.c
226libbfd.h
901c5bfd 227libcoff-in.h
08942d11 228libcoff.h
a3b3dbdd 229libecoff.h
76b731f9 230libhppa.h
08942d11 231libieee.h
c3e964b9 232libnlm.h
08942d11 233liboasys.h
da6b2d99 234linker.c
3151f12f 235lynx-core.c
e295a90d 236m68k4knetbsd.c
55626bf0 237m68klinux.c
eefe075d 238m68klynx.c
ec35a1c2 239m68knetbsd.c
56fbe889 240m88kmach3.c
346a6d59 241makefile.dos
c3d8e071 242makefile.vms
044c1ba9 243mipsbsd.c
241d8883 244mpw-config.in
63c67f3c 245mpw-make.sed
08942d11 246newsos3.c
fe16107d 247netbsd-core.c
a3f7a777 248netbsd.h
d1f83f44 249nlm-target.h
c3e964b9 250nlm.c
1bbabdad 251nlm32-alpha.c
8fa7a236 252nlm32-i386.c
7ce8b9d1 253nlm32-ppc.c
38f422db 254nlm32-sparc.c
c3e964b9 255nlm32.c
c3e964b9
FF
256nlm64.c
257nlmcode.h
38f422db 258nlmswap.h
c877bdf1 259ns32k.h
a3f7a777 260ns32knetbsd.c
08942d11
RP
261oasys.c
262opncls.c
4346ee0f 263osf-core.c
56fbe889 264pc532-mach.c
a3444c49 265pe-arm.c
b297038d 266pe-i386.c
8d2a09b0 267pe-ppc.c
4e98461f 268pei-arm.c
b297038d 269pei-i386.c
8d2a09b0 270pei-ppc.c
4e98461f 271peicode.h
0d1fcbbb 272ppcboot.c
c236d8b3 273ptrace-core.c
6f715d66 274reloc.c
075caafd 275reloc16.c
6c3bc2b8 276riscix.c
cf15d9e9 277rs6000-core.c
6f715d66 278section.c
66eca5ee
JK
279som.c
280som.h
5f792743 281sparclinux.c
e3b5bfa8 282sparclynx.c
a3f7a777 283sparcnetbsd.c
08942d11 284srec.c
1726b8f0 285stabs.c
7de245d3 286stab-syms.c
08942d11 287sunos.c
6f715d66 288syms.c
b7577823 289sysdep.h
08942d11 290targets.c
dee99794 291targmatch.sed
a14b2941 292tekhex.c
08942d11 293trad-core.c
c3c112fc 294versados.c
dd984644 295xcofflink.c
08942d11 296
87756e15
RP
297Things-to-lose:
298
775d4a40 299
08942d11
RP
300Do-last:
301
2ec2c9f4 302arc_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
303if ( echo $* | grep keep\-arc > /dev/null ) ; then
304 for i in $arc_files ; do
305 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Keeping arc stuff in $i
308 fi
309 fi
310 done
311else
312 for i in $arc_files ; do
313 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
314 if [ -n "${verbose}" ] ; then
315 echo Removing traces of \"arc\" from $i...
316 fi
317 cp $i new
318 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
319 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50bd50d4
MH
320 if [ -n "${verbose}" ] ; then
321 echo Caching $i in .Recover...
322 fi
323 mv $i .Recover
324 fi
325 mv new $i
326 fi
327 done
328fi
329
fd8d7c31
MH
330d30v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
331if ( echo $* | grep keep\-d30v > /dev/null ) ; then
332 for i in $d30v_files ; do
333 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
334 if [ -n "${verbose}" ] ; then
335 echo Keeping d30v stuff in $i
336 fi
337 fi
338 done
339else
340 for i in $d30v_files ; do
341 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
342 if [ -n "${verbose}" ] ; then
343 echo Removing traces of \"d30v\" from $i...
344 fi
345 cp $i new
346 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
347 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
348 if [ -n "${verbose}" ] ; then
349 echo Caching $i in .Recover...
350 fi
351 mv $i .Recover
352 fi
353 mv new $i
354 fi
355 done
356fi
357
358v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
359if ( echo $* | grep keep\-v850 > /dev/null ) ; then
360 for i in $v850_files ; do
361 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
362 if [ -n "${verbose}" ] ; then
363 echo Keeping v850 stuff in $i
364 fi
365 fi
366 done
367else
368 for i in $v850_files ; do
369 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
370 if [ -n "${verbose}" ] ; then
371 echo Removing traces of \"v850\" from $i...
372 fi
373 cp $i new
374 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
375 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
376 if [ -n "${verbose}" ] ; then
377 echo Caching $i in .Recover...
378 fi
379 mv $i .Recover
380 fi
381 mv new $i
382 fi
383 done
384fi
385
276c2d7d
GRK
386r5900_files="ChangeLog config.bfd"
387if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
388 for i in $r5900_files ; do
389 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
390 if [ -n "${verbose}" ] ; then
391 echo Keeping r5900 stuff in $i
392 fi
393 fi
394 done
395else
396 for i in $r5900_files ; do
397 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
398 if [ -n "${verbose}" ] ; then
399 echo Removing traces of \"r5900\" from $i...
400 fi
401 cp $i new
402 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
403 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
404 if [ -n "${verbose}" ] ; then
405 echo Caching $i in .Recover...
406 fi
407 mv $i .Recover
408 fi
409 mv new $i
410 fi
411 done
412fi
413
67bc13a4 414tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
415if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
416 for i in $tic80_files ; do
417 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
418 if [ -n "${verbose}" ] ; then
419 echo Keeping tic80 stuff in $i
420 fi
421 fi
422 done
423else
424 for i in $tic80_files ; do
425 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
426 if [ -n "${verbose}" ] ; then
427 echo Removing traces of \"tic80\" from $i...
428 fi
429 cp $i new
430 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
431 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
432 if [ -n "${verbose}" ] ; then
433 echo Caching $i in .Recover...
434 fi
435 mv $i .Recover
436 fi
437 mv new $i
438 fi
439 done
440fi
441
d6d44ef9
SG
442gm_files="ChangeLog ChangeLog.2 config.bfd"
443if ( echo $* | grep keep\-gm > /dev/null ) ; then
444 for i in $gm_files ; do
445 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
446 if [ -n "${verbose}" ] ; then
447 echo Keeping gm stuff in $i
448 fi
449 fi
450 done
451else
452 for i in $gm_files ; do
453 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
454 if [ -n "${verbose}" ] ; then
455 echo Removing traces of \"gm\" from $i...
456 fi
457 cp $i new
458 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
459 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
460 if [ -n "${verbose}" ] ; then
461 echo Caching $i in .Recover...
462 fi
463 mv $i .Recover
464 fi
465 mv new $i
466 fi
467 done
468fi
469
5c680afd
MT
470for i in * ; do
471 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
472 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
473 fi
474done
475
08942d11 476# End of file.
This page took 0.222972 seconds and 4 git commands to generate.