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