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