* syms.c (struct indexentry): Change directory_name, file_name,
[deliverable/binutils-gdb.git] / bfd / .Sanitize
CommitLineData
7d2ac701 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 34# All files listed between the "Things-to-keep:" line and the
7d2ac701 35# "Do-last:" line will be kept. All other files will be removed.
08942d11
RP
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
d468a149 102coff-w65.c
7d2ac701 103coff-we32k.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
7d2ac701
ILT
128cpu-m10200.c
129cpu-m10300.c
37bdd624 130cpu-m32r.c
c3e964b9
FF
131cpu-m68k.c
132cpu-m88k.c
133cpu-mips.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 141cpu-vax.c
d468a149 142cpu-w65.c
7d2ac701 143cpu-we32k.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
7d2ac701
ILT
153elf-m10200.c
154elf-m10300.c
cef91d75 155elf.c
76af94b9 156elf32-arc.c
a3c5b9a4 157elf32-d10v.c
d39d83c1 158elf32-gen.c
c268b400
KR
159elf32-hppa.c
160elf32-hppa.h
4743848f
KR
161elf32-i386.c
162elf32-i860.c
37bdd624 163elf32-m32r.c
4743848f 164elf32-m68k.c
2c4f2c72
JK
165elf32-m88k.c
166elf32-mips.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
ef7e172e 177elfcode.h
ede4eed4
KR
178elfcore.h
179elflink.c
180elflink.h
7d2ac701 181elfxx-target.h
c3d8e071
ILT
182evax-alpha.c
183evax-egsd.c
184evax-emh.c
185evax-etir.c
186evax-misc.c
7d2ac701 187evax.h
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
aef0bd99 207i386lynx.c
890eafc0 208i386mach3.c
7c2c70f3 209i386msdos.c
7d2ac701 210i386netbsd.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
fe16107d 239netbsd-core.c
a3f7a777 240netbsd.h
7d2ac701 241newsos3.c
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
7d2ac701 265po
0d1fcbbb 266ppcboot.c
c236d8b3 267ptrace-core.c
6f715d66 268reloc.c
075caafd 269reloc16.c
6c3bc2b8 270riscix.c
cf15d9e9 271rs6000-core.c
6f715d66 272section.c
66eca5ee
JK
273som.c
274som.h
5f792743 275sparclinux.c
e3b5bfa8 276sparclynx.c
a3f7a777 277sparcnetbsd.c
08942d11 278srec.c
7de245d3 279stab-syms.c
7d2ac701 280stabs.c
c0734708 281stamp-h.in
08942d11 282sunos.c
6f715d66 283syms.c
b7577823 284sysdep.h
08942d11 285targets.c
dee99794 286targmatch.sed
a14b2941 287tekhex.c
08942d11 288trad-core.c
eee4e8ca 289vaxnetbsd.c
c3c112fc 290versados.c
dd984644 291xcofflink.c
08942d11 292
87756e15
RP
293Things-to-lose:
294
775d4a40 295
7d2ac701
ILT
296
297# The lines between the "Do-last:" line and the end of the file
298# are executed as a /bin/sh shell script after everything else is
299# done.
300
08942d11
RP
301Do-last:
302
a3d2e13b 303d30v_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
304if ( echo $* | grep keep\-d30v > /dev/null ) ; then
305 for i in $d30v_files ; do
306 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
307 if [ -n "${verbose}" ] ; then
308 echo Keeping d30v stuff in $i
309 fi
310 fi
311 done
312else
313 for i in $d30v_files ; do
314 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
315 if [ -n "${verbose}" ] ; then
316 echo Removing traces of \"d30v\" from $i...
317 fi
318 cp $i new
319 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
320 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
321 if [ -n "${verbose}" ] ; then
322 echo Caching $i in .Recover...
323 fi
324 mv $i .Recover
325 fi
326 mv new $i
327 fi
328 done
329fi
330
2cf9a0d0 331v850_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
332if ( echo $* | grep keep\-v850e > /dev/null ) ; then
333 for i in $v850_files ; do
334 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
335 if [ -n "${verbose}" ] ; then
336 echo Keeping v850e stuff in $i
337 fi
338 fi
339 done
340else
341 for i in $v850_files ; do
342 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
343 if [ -n "${verbose}" ] ; then
344 echo Removing traces of \"v850e\" from $i...
345 fi
346 cp $i new
8988d935 347 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
def47b53
NC
348 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
349 if [ -n "${verbose}" ] ; then
350 echo Caching $i in .Recover...
351 fi
352 mv $i .Recover
353 fi
354 mv new $i
355 fi
356 done
357fi
8988d935 358
721232f3 359r5900_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c"
276c2d7d
GRK
360if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
361 for i in $r5900_files ; do
362 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
363 if [ -n "${verbose}" ] ; then
364 echo Keeping r5900 stuff in $i
365 fi
366 fi
367 done
368else
369 for i in $r5900_files ; do
370 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
371 if [ -n "${verbose}" ] ; then
372 echo Removing traces of \"r5900\" from $i...
373 fi
374 cp $i new
375 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
376 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
377 if [ -n "${verbose}" ] ; then
378 echo Caching $i in .Recover...
379 fi
380 mv $i .Recover
381 fi
382 mv new $i
383 fi
384 done
385fi
386
29410c45
JL
387tx19_files="archures.c bfd-in2.h cpu-mips.c"
388if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
389 for i in $tx19_files ; do
390 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
391 if [ -n "${verbose}" ] ; then
392 echo Keeping tx19 stuff in $i
393 fi
394 fi
395 done
396else
397 for i in $tx19_files ; do
398 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
399 if [ -n "${verbose}" ] ; then
400 echo Removing traces of \"tx19\" from $i...
401 fi
402 cp $i new
403 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
404 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
405 if [ -n "${verbose}" ] ; then
406 echo Caching $i in .Recover...
407 fi
408 mv $i .Recover
409 fi
410 mv new $i
411 fi
412 done
413fi
414
415tx49_files="archures.c bfd-in2.h cpu-mips.c"
416if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
417 for i in $tx49_files ; do
418 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
419 if [ -n "${verbose}" ] ; then
420 echo Keeping tx49 stuff in $i
421 fi
422 fi
423 done
424else
425 for i in $tx49_files ; do
426 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
427 if [ -n "${verbose}" ] ; then
428 echo Removing traces of \"tx49\" from $i...
429 fi
430 cp $i new
431 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
432 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
433 if [ -n "${verbose}" ] ; then
434 echo Caching $i in .Recover...
435 fi
436 mv $i .Recover
437 fi
438 mv new $i
439 fi
440 done
441fi
442
a3d2e13b 443tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
444if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
445 for i in $tic80_files ; do
446 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
447 if [ -n "${verbose}" ] ; then
448 echo Keeping tic80 stuff in $i
449 fi
450 fi
451 done
452else
453 for i in $tic80_files ; do
454 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
455 if [ -n "${verbose}" ] ; then
456 echo Removing traces of \"tic80\" from $i...
457 fi
458 cp $i new
459 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
460 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
461 if [ -n "${verbose}" ] ; then
462 echo Caching $i in .Recover...
463 fi
464 mv $i .Recover
465 fi
466 mv new $i
467 fi
468 done
469fi
470
d6d44ef9
SG
471gm_files="ChangeLog ChangeLog.2 config.bfd"
472if ( echo $* | grep keep\-gm > /dev/null ) ; then
473 for i in $gm_files ; do
474 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
475 if [ -n "${verbose}" ] ; then
476 echo Keeping gm stuff in $i
477 fi
478 fi
479 done
480else
481 for i in $gm_files ; do
482 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
483 if [ -n "${verbose}" ] ; then
484 echo Removing traces of \"gm\" from $i...
485 fi
486 cp $i new
487 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
488 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
489 if [ -n "${verbose}" ] ; then
490 echo Caching $i in .Recover...
491 fi
492 mv $i .Recover
493 fi
494 mv new $i
495 fi
496 done
497fi
498
c02ed6a8
AC
499vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c"
500if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
501 for i in $vr5400_files ; do
502 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
503 if [ -n "${verbose}" ] ; then
504 echo Keeping vr5400 stuff in $i
505 fi
506 fi
507 done
508else
509 for i in $vr5400_files ; do
510 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
511 if [ -n "${verbose}" ] ; then
512 echo Removing traces of \"vr5400\" from $i...
513 fi
514 cp $i new
515 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
516 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
517 if [ -n "${verbose}" ] ; then
518 echo Caching $i in .Recover...
519 fi
520 mv $i .Recover
521 fi
522 mv new $i
523 fi
524 done
525fi
526
ad4413e6
GRK
527vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c"
528if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
529 for i in $vr4320_files ; do
530 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
531 if [ -n "${verbose}" ] ; then
532 echo Keeping vr4320 stuff in $i
533 fi
534 fi
535 done
536else
537 for i in $vr4320_files ; do
538 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
539 if [ -n "${verbose}" ] ; then
540 echo Removing traces of \"vr4320\" from $i...
541 fi
542 cp $i new
543 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
544 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
545 if [ -n "${verbose}" ] ; then
546 echo Caching $i in .Recover...
547 fi
548 mv $i .Recover
549 fi
550 mv new $i
551 fi
552 done
553fi
554
a3240f68
NC
555m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
556if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
557 for i in $m32rx_files ; do
558 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
559 if [ -n "${verbose}" ] ; then
560 echo Keeping m32rx stuff in $i
561 fi
562 fi
563 done
564else
565 for i in $m32rx_files ; do
566 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
567 if [ -n "${verbose}" ] ; then
568 echo Removing traces of \"m32rx\" from $i...
569 fi
570 cp $i new
571 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
572 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
573 if [ -n "${verbose}" ] ; then
574 echo Caching $i in .Recover...
575 fi
576 mv $i .Recover
577 fi
578 mv new $i
579 fi
580 done
581fi
582
a25897a9 583sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
20b2c808
DE
584if ( echo $* | grep keep\-sky > /dev/null ) ; then
585 for i in $sky_files ; do
586 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
587 if [ -n "${verbose}" ] ; then
588 echo Keeping sky stuff in $i
589 fi
590 fi
591 done
592else
593 for i in $sky_files ; do
594 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
595 if [ -n "${verbose}" ] ; then
596 echo Removing traces of \"sky\" from $i...
597 fi
598 cp $i new
599 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
600 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
601 if [ -n "${verbose}" ] ; then
602 echo Caching $i in .Recover...
603 fi
604 mv $i .Recover
605 fi
606 mv new $i
607 fi
608 done
609fi
610
5c680afd
MT
611for i in * ; do
612 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
613 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
614 fi
615done
616
3d96e9b4
TT
617
618# This must come after all other sanitizations. Re-sanitize the .pot
619# file.
620if [ -n "${verbose}" ]; then
621 echo Re-computing files for gettext ...
622fi
623
624if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
625 if [ -n "${verbose}" ]; then
626 echo Caching po/POTFILES.in in .Recover...
627 fi
628 mv po/POTFILES.in po/.Recover
629fi
630find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
631
632if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
633 if [ -n "${verbose}" ]; then
634 echo Caching po/bfd.pot in .Recover...
635 fi
636 mv po/bfd.pot po/.Recover
637fi
d6f3da9b
TT
638# If this fails, Sanitization must fail.
639xgettext `cat po/POTFILES.in` -o po/bfd.pot || exit 1
3d96e9b4 640
7d2ac701 641# eof
This page took 0.246104 seconds and 4 git commands to generate.