* Makefile.am: New file, based on old Makefile.in.
[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
71bcbd25 34v850_files="cpu-v850.c elf32-v850.c"
0c1d95c7
C
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
39 lose_these_too="${v850_files} ${lose_these_too}"
40fi
41
2a0a42d3
FF
42tic80_files="cpu-tic80.c coff-tic80.c"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
49
08942d11
RP
50# All files listed between the "Things-to-keep:" line and the
51# "Files-to-sed:" line will be kept. All other files will be removed.
52# Directories listed in this section will have their own Sanitize
53# called. Directories not listed will be removed in their entirety
54# with rm -rf.
55
56Things-to-keep:
87756e15 57
08942d11
RP
58COPYING
59ChangeLog
ceeca31c 60ChangeLog.1
1613e075 61ChangeLog.2
c0734708 62Makefile.am
08942d11 63Makefile.in
c3e964b9 64PORTING
b8760145 65README
08942d11 66TODO
8c1891af 67VERSION
b7577823 68acconfig.h
c0734708 69acinclude.m4
f515fb2f 70aclocal.m4
60ac749c 71aix386-core.c
c3e964b9 72aout-adobe.c
ff15324f 73aout-arm.c
c3e964b9 74aout-encap.c
56fbe889 75aout-ns32k.c
0cd98b92 76aout-sparcle.c
c3e964b9 77aout-target.h
77d11284 78aout0.c
08942d11
RP
79aout32.c
80aout64.c
81aoutf1.h
08942d11
RP
82aoutx.h
83archive.c
84archures.c
901c5bfd 85bfd-in.h
b9653d81 86bfd-in2.h
08942d11 87bfd.c
c768bd3f 88binary.c
08942d11
RP
89bout.c
90cache.c
e3b5bfa8
SS
91cf-i386lynx.c
92cf-m68klynx.c
93cf-sparclynx.c
5d70e4d1 94cisco-core.c
156e3852 95coff-a29k.c
c3e964b9 96coff-alpha.c
97eb2f0c 97coff-apollo.c
d19df9b5
ILT
98coff-arm.c
99coff-aux.c
c06e55d9 100coff-go32.c
71e34032 101coff-h8300.c
ff975a2c 102coff-h8500.c
156e3852 103coff-i386.c
cf587de8 104coff-i860.c
156e3852 105coff-i960.c
c3e964b9 106coff-m68k.c
156e3852
JG
107coff-m88k.c
108coff-mips.c
63c67f3c 109coff-pmac.c
8d2a09b0 110coff-ppc.c
156e3852 111coff-rs6000.c
9faacb92 112coff-sh.c
e3b5bfa8 113coff-sparc.c
179ce6e1 114coff-stubgo32.c
ac388f2a 115coff-svm68k.c
df61743d 116coff-u68k.c
c7551f76 117coff-we32k.c
d468a149 118coff-w65.c
d41ab714 119coff-z8k.c
08942d11 120coffcode.h
075caafd 121coffgen.c
69645d10 122cofflink.c
075caafd 123coffswap.h
14616002 124config.bfd
936b870c 125config.in
7c1a9ec3 126configure
13b351cc 127configure.bat
0f854557 128configure.com
5a5fa368 129configure.host
c3e964b9 130configure.in
d9e771e3 131corefile.c
c3e964b9
FF
132cpu-a29k.c
133cpu-alpha.c
6c3bc2b8 134cpu-arm.c
a3c5b9a4 135cpu-d10v.c
c3e964b9
FF
136cpu-h8300.c
137cpu-h8500.c
138cpu-hppa.c
139cpu-i386.c
cf587de8 140cpu-i860.c
c3e964b9 141cpu-i960.c
37bdd624 142cpu-m32r.c
c3e964b9
FF
143cpu-m68k.c
144cpu-m88k.c
145cpu-mips.c
7a68d1f7
ILT
146cpu-m10200.c
147cpu-m10300.c
e26e4fbc 148cpu-ns32k.c
384c1791 149cpu-powerpc.c
c3e964b9
FF
150cpu-rs6000.c
151cpu-sh.c
152cpu-sparc.c
153cpu-vax.c
154cpu-we32k.c
d468a149 155cpu-w65.c
c3e964b9 156cpu-z8k.c
08942d11 157demo64.c
97eb2f0c 158dep-in.sed
c3e964b9 159doc
dae31cf5 160ecoff.c
71efdf83 161ecofflink.c
dae31cf5 162ecoffswap.h
6ab826bd 163elf-bfd.h
cef91d75 164elf.c
a3c5b9a4 165elf32-d10v.c
d39d83c1 166elf32-gen.c
c268b400
KR
167elf32-hppa.c
168elf32-hppa.h
4743848f
KR
169elf32-i386.c
170elf32-i860.c
37bdd624 171elf32-m32r.c
4743848f 172elf32-m68k.c
2c4f2c72
JK
173elf32-m88k.c
174elf32-mips.c
7a68d1f7
ILT
175elf-m10200.c
176elf-m10300.c
45ccfd58 177elf32-ppc.c
c86158e5 178elf32-sh.c
8d936d1f 179elf32-sparc.c
4743848f 180elf32.c
e8f46717 181elf64-alpha.c
d39d83c1 182elf64-gen.c
d1bf45aa 183elf64-mips.c
66599384 184elf64-sparc.c
4bf86ecb 185elf64.c
4b18dd1e 186elfxx-target.h
ef7e172e 187elfcode.h
ede4eed4
KR
188elfcore.h
189elflink.c
190elflink.h
c3d8e071
ILT
191evax.h
192evax-alpha.c
193evax-egsd.c
194evax-emh.c
195evax-etir.c
196evax-misc.c
08942d11 197filemode.c
6f715d66 198format.c
767f22d5 199freebsd.h
608de555 200gen-aout.c
da6b2d99 201genlink.h
179ce6e1 202go32stub.h
da6b2d99 203hash.c
08942d11 204host-aout.c
90c7c720 205hosts
c3e964b9 206hp300bsd.c
c268b400 207hp300hpux.c
cef91d75 208hppa_stubs.h
8a71bf96 209hppabsd-core.c
3f933620 210hpux-core.c
b7de6963 211i386aout.c
256b39e0 212i386bsd.c
bdf1b511 213i386dynix.c
767f22d5 214i386freebsd.c
afff60cd 215i386linux.c
a3f7a777 216i386netbsd.c
aef0bd99 217i386lynx.c
890eafc0 218i386mach3.c
7c2c70f3 219i386msdos.c
f8ffa548 220i386os9k.c
08942d11 221ieee.c
ffd15489 222ihex.c
c3e964b9 223init.c
7ce1a446 224irix-core.c
141c97ea 225libaout.h
901c5bfd 226libbfd-in.h
08942d11
RP
227libbfd.c
228libbfd.h
901c5bfd 229libcoff-in.h
08942d11 230libcoff.h
a3b3dbdd 231libecoff.h
76b731f9 232libhppa.h
08942d11 233libieee.h
c3e964b9 234libnlm.h
08942d11 235liboasys.h
da6b2d99 236linker.c
3151f12f 237lynx-core.c
e295a90d 238m68k4knetbsd.c
55626bf0 239m68klinux.c
eefe075d 240m68klynx.c
ec35a1c2 241m68knetbsd.c
56fbe889 242m88kmach3.c
346a6d59 243makefile.dos
c3d8e071 244makefile.vms
044c1ba9 245mipsbsd.c
241d8883 246mpw-config.in
63c67f3c 247mpw-make.sed
08942d11 248newsos3.c
fe16107d 249netbsd-core.c
a3f7a777 250netbsd.h
d1f83f44 251nlm-target.h
c3e964b9 252nlm.c
1bbabdad 253nlm32-alpha.c
8fa7a236 254nlm32-i386.c
7ce8b9d1 255nlm32-ppc.c
38f422db 256nlm32-sparc.c
c3e964b9 257nlm32.c
c3e964b9
FF
258nlm64.c
259nlmcode.h
38f422db 260nlmswap.h
c877bdf1 261ns32k.h
a3f7a777 262ns32knetbsd.c
08942d11
RP
263oasys.c
264opncls.c
4346ee0f 265osf-core.c
56fbe889 266pc532-mach.c
a3444c49 267pe-arm.c
b297038d 268pe-i386.c
8d2a09b0 269pe-ppc.c
4e98461f 270pei-arm.c
b297038d 271pei-i386.c
8d2a09b0 272pei-ppc.c
4e98461f 273peicode.h
0d1fcbbb 274ppcboot.c
c236d8b3 275ptrace-core.c
6f715d66 276reloc.c
075caafd 277reloc16.c
6c3bc2b8 278riscix.c
cf15d9e9 279rs6000-core.c
6f715d66 280section.c
66eca5ee
JK
281som.c
282som.h
5f792743 283sparclinux.c
e3b5bfa8 284sparclynx.c
a3f7a777 285sparcnetbsd.c
08942d11 286srec.c
1726b8f0 287stabs.c
7de245d3 288stab-syms.c
c0734708 289stamp-h.in
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
361v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
362if ( echo $* | grep keep\-v850 > /dev/null ) ; then
363 for i in $v850_files ; do
364 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
365 if [ -n "${verbose}" ] ; then
366 echo Keeping v850 stuff in $i
367 fi
368 fi
369 done
370else
371 for i in $v850_files ; do
372 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
373 if [ -n "${verbose}" ] ; then
374 echo Removing traces of \"v850\" from $i...
375 fi
376 cp $i new
377 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
378 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
2a0a42d3
FF
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
276c2d7d
GRK
389r5900_files="ChangeLog config.bfd"
390if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
391 for i in $r5900_files ; do
392 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
393 if [ -n "${verbose}" ] ; then
394 echo Keeping r5900 stuff in $i
395 fi
396 fi
397 done
398else
399 for i in $r5900_files ; do
400 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
401 if [ -n "${verbose}" ] ; then
402 echo Removing traces of \"r5900\" from $i...
403 fi
404 cp $i new
405 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
406 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
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
67bc13a4 417tic80_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
2a0a42d3
FF
418if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
419 for i in $tic80_files ; do
420 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
421 if [ -n "${verbose}" ] ; then
422 echo Keeping tic80 stuff in $i
423 fi
424 fi
425 done
426else
427 for i in $tic80_files ; do
428 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
429 if [ -n "${verbose}" ] ; then
430 echo Removing traces of \"tic80\" from $i...
431 fi
432 cp $i new
433 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
434 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
05cedcf6
DE
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
d6d44ef9
SG
445gm_files="ChangeLog ChangeLog.2 config.bfd"
446if ( echo $* | grep keep\-gm > /dev/null ) ; then
447 for i in $gm_files ; do
448 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
449 if [ -n "${verbose}" ] ; then
450 echo Keeping gm stuff in $i
451 fi
452 fi
453 done
454else
455 for i in $gm_files ; do
456 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
457 if [ -n "${verbose}" ] ; then
458 echo Removing traces of \"gm\" from $i...
459 fi
460 cp $i new
461 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
462 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
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
5c680afd
MT
473for i in * ; do
474 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
475 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
476 fi
477done
478
08942d11 479# End of file.
This page took 0.275312 seconds and 4 git commands to generate.