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