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