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