* coff-tic80.c (coff_rtype_to_howto): Define
[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
df61743d 120coff-u68k.c
c7551f76 121coff-we32k.c
d468a149 122coff-w65.c
d41ab714 123coff-z8k.c
08942d11 124coffcode.h
075caafd 125coffgen.c
69645d10 126cofflink.c
075caafd 127coffswap.h
14616002 128config.bfd
c3d8e071 129config.h-vms
936b870c 130config.in
7c1a9ec3 131configure
13b351cc 132configure.bat
5a5fa368 133configure.host
c3e964b9 134configure.in
d9e771e3 135corefile.c
c3e964b9
FF
136cpu-a29k.c
137cpu-alpha.c
6c3bc2b8 138cpu-arm.c
a3c5b9a4 139cpu-d10v.c
c3e964b9
FF
140cpu-h8300.c
141cpu-h8500.c
142cpu-hppa.c
143cpu-i386.c
cf587de8 144cpu-i860.c
c3e964b9
FF
145cpu-i960.c
146cpu-m68k.c
147cpu-m88k.c
148cpu-mips.c
ae1b99e4
JL
149cpu-mn10200.c
150cpu-mn10300.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
a3c5b9a4 168elf32-d10v.c
d39d83c1 169elf32-gen.c
c268b400
KR
170elf32-hppa.c
171elf32-hppa.h
4743848f
KR
172elf32-i386.c
173elf32-i860.c
174elf32-m68k.c
2c4f2c72
JK
175elf32-m88k.c
176elf32-mips.c
ae1b99e4
JL
177elf32-mn10200.c
178elf32-mn10300.c
45ccfd58 179elf32-ppc.c
c86158e5 180elf32-sh.c
8d936d1f 181elf32-sparc.c
4743848f 182elf32.c
e8f46717 183elf64-alpha.c
d39d83c1 184elf64-gen.c
d1bf45aa 185elf64-mips.c
66599384 186elf64-sparc.c
4bf86ecb 187elf64.c
4b18dd1e 188elfxx-target.h
ef7e172e 189elfcode.h
ede4eed4
KR
190elfcore.h
191elflink.c
192elflink.h
c3d8e071
ILT
193evax.h
194evax-alpha.c
195evax-egsd.c
196evax-emh.c
197evax-etir.c
198evax-misc.c
08942d11 199filemode.c
6f715d66 200format.c
767f22d5 201freebsd.h
608de555 202gen-aout.c
da6b2d99
ILT
203genlink.h
204hash.c
08942d11 205host-aout.c
90c7c720 206hosts
c3e964b9 207hp300bsd.c
c268b400 208hp300hpux.c
cef91d75 209hppa_stubs.h
8a71bf96 210hppabsd-core.c
3f933620 211hpux-core.c
b7de6963 212i386aout.c
256b39e0 213i386bsd.c
bdf1b511 214i386dynix.c
767f22d5 215i386freebsd.c
afff60cd 216i386linux.c
a3f7a777 217i386netbsd.c
aef0bd99 218i386lynx.c
890eafc0 219i386mach3.c
7c2c70f3 220i386msdos.c
f8ffa548 221i386os9k.c
08942d11 222ieee.c
ffd15489 223ihex.c
c3e964b9 224init.c
7ce1a446 225irix-core.c
141c97ea 226libaout.h
901c5bfd 227libbfd-in.h
08942d11
RP
228libbfd.c
229libbfd.h
901c5bfd 230libcoff-in.h
08942d11 231libcoff.h
a3b3dbdd 232libecoff.h
76b731f9 233libhppa.h
08942d11 234libieee.h
c3e964b9 235libnlm.h
08942d11 236liboasys.h
da6b2d99 237linker.c
3151f12f 238lynx-core.c
e295a90d 239m68k4knetbsd.c
55626bf0 240m68klinux.c
eefe075d 241m68klynx.c
ec35a1c2 242m68knetbsd.c
56fbe889 243m88kmach3.c
346a6d59 244makefile.dos
c3d8e071 245makefile.vms
044c1ba9 246mipsbsd.c
241d8883 247mpw-config.in
63c67f3c 248mpw-make.sed
08942d11 249newsos3.c
fe16107d 250netbsd-core.c
a3f7a777 251netbsd.h
d1f83f44 252nlm-target.h
c3e964b9 253nlm.c
1bbabdad 254nlm32-alpha.c
8fa7a236 255nlm32-i386.c
7ce8b9d1 256nlm32-ppc.c
38f422db 257nlm32-sparc.c
c3e964b9 258nlm32.c
c3e964b9
FF
259nlm64.c
260nlmcode.h
38f422db 261nlmswap.h
c877bdf1 262ns32k.h
a3f7a777 263ns32knetbsd.c
08942d11
RP
264oasys.c
265opncls.c
4346ee0f 266osf-core.c
56fbe889 267pc532-mach.c
a3444c49 268pe-arm.c
b297038d 269pe-i386.c
8d2a09b0 270pe-ppc.c
4e98461f 271pei-arm.c
b297038d 272pei-i386.c
8d2a09b0 273pei-ppc.c
4e98461f 274peicode.h
0d1fcbbb 275ppcboot.c
c236d8b3 276ptrace-core.c
6f715d66 277reloc.c
075caafd 278reloc16.c
6c3bc2b8 279riscix.c
cf15d9e9 280rs6000-core.c
6f715d66 281section.c
66eca5ee
JK
282som.c
283som.h
e3b5bfa8 284sparclynx.c
a3f7a777 285sparcnetbsd.c
08942d11 286srec.c
1726b8f0 287stabs.c
7de245d3 288stab-syms.c
08942d11 289sunos.c
6f715d66 290syms.c
b7577823 291sysdep.h
08942d11 292targets.c
dee99794 293targmatch.sed
a14b2941 294tekhex.c
08942d11 295trad-core.c
c3c112fc 296versados.c
dd984644 297xcofflink.c
08942d11 298
87756e15
RP
299Things-to-lose:
300
775d4a40 301
08942d11
RP
302Do-last:
303
2ec2c9f4 304arc_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
305if ( echo $* | grep keep\-arc > /dev/null ) ; then
306 for i in $arc_files ; do
307 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
308 if [ -n "${verbose}" ] ; then
309 echo Keeping arc stuff in $i
310 fi
311 fi
312 done
313else
314 for i in $arc_files ; do
315 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
316 if [ -n "${verbose}" ] ; then
317 echo Removing traces of \"arc\" from $i...
318 fi
319 cp $i new
320 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
321 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
50bd50d4
MH
322 if [ -n "${verbose}" ] ; then
323 echo Caching $i in .Recover...
324 fi
325 mv $i .Recover
326 fi
327 mv new $i
328 fi
329 done
330fi
331
fd8d7c31
MH
332d30v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
333if ( echo $* | grep keep\-d30v > /dev/null ) ; then
334 for i in $d30v_files ; do
335 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
336 if [ -n "${verbose}" ] ; then
337 echo Keeping d30v stuff in $i
338 fi
339 fi
340 done
341else
342 for i in $d30v_files ; do
343 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
344 if [ -n "${verbose}" ] ; then
345 echo Removing traces of \"d30v\" from $i...
346 fi
347 cp $i new
348 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
349 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
0c1d95c7
C
350 if [ -n "${verbose}" ] ; then
351 echo Caching $i in .Recover...
352 fi
353 mv $i .Recover
354 fi
355 mv new $i
356 fi
357 done
358fi
359
3ebefb07 360m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
66e4c229
DE
361if ( echo $* | grep keep\-m32r > /dev/null ) ; then
362 for i in $m32r_files ; do
363 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
364 if [ -n "${verbose}" ] ; then
365 echo Keeping m32r stuff in $i
366 fi
367 fi
368 done
369else
370 for i in $m32r_files ; do
371 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
372 if [ -n "${verbose}" ] ; then
373 echo Removing traces of \"m32r\" from $i...
374 fi
375 cp $i new
376 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
377 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
378 if [ -n "${verbose}" ] ; then
379 echo Caching $i in .Recover...
380 fi
381 mv $i .Recover
382 fi
383 mv new $i
384 fi
385 done
386fi
387
0c1d95c7
C
388v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
389if ( echo $* | grep keep\-v850 > /dev/null ) ; then
390 for i in $v850_files ; do
391 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
392 if [ -n "${verbose}" ] ; then
393 echo Keeping v850 stuff in $i
394 fi
395 fi
396 done
397else
398 for i in $v850_files ; do
399 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
400 if [ -n "${verbose}" ] ; then
401 echo Removing traces of \"v850\" from $i...
402 fi
403 cp $i new
404 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
405 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
406 if [ -n "${verbose}" ] ; then
407 echo Caching $i in .Recover...
408 fi
409 mv $i .Recover
410 fi
411 mv new $i
412 fi
413 done
414fi
415
276c2d7d
GRK
416r5900_files="ChangeLog config.bfd"
417if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
418 for i in $r5900_files ; do
419 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
420 if [ -n "${verbose}" ] ; then
421 echo Keeping r5900 stuff in $i
422 fi
423 fi
424 done
425else
426 for i in $r5900_files ; do
427 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
428 if [ -n "${verbose}" ] ; then
429 echo Removing traces of \"r5900\" from $i...
430 fi
431 cp $i new
432 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
433 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
434 if [ -n "${verbose}" ] ; then
435 echo Caching $i in .Recover...
436 fi
437 mv $i .Recover
438 fi
439 mv new $i
440 fi
441 done
442fi
443
84fd6e7e 444tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h"
2a0a42d3
FF
445if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
446 for i in $tic80_files ; do
447 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
448 if [ -n "${verbose}" ] ; then
449 echo Keeping tic80 stuff in $i
450 fi
451 fi
452 done
453else
454 for i in $tic80_files ; do
455 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
456 if [ -n "${verbose}" ] ; then
457 echo Removing traces of \"tic80\" from $i...
458 fi
459 cp $i new
460 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
461 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
462 if [ -n "${verbose}" ] ; then
463 echo Caching $i in .Recover...
464 fi
465 mv $i .Recover
466 fi
467 mv new $i
468 fi
469 done
470fi
471
d6d44ef9
SG
472gm_files="ChangeLog ChangeLog.2 config.bfd"
473if ( echo $* | grep keep\-gm > /dev/null ) ; then
474 for i in $gm_files ; do
475 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
476 if [ -n "${verbose}" ] ; then
477 echo Keeping gm stuff in $i
478 fi
479 fi
480 done
481else
482 for i in $gm_files ; do
483 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
484 if [ -n "${verbose}" ] ; then
485 echo Removing traces of \"gm\" from $i...
486 fi
487 cp $i new
488 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
489 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
490 if [ -n "${verbose}" ] ; then
491 echo Caching $i in .Recover...
492 fi
493 mv $i .Recover
494 fi
495 mv new $i
496 fi
497 done
498fi
499
5c680afd
MT
500for i in * ; do
501 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
502 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
503 fi
504done
505
08942d11 506# End of file.
This page took 0.203126 seconds and 4 git commands to generate.