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