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