* configure.in: Call AC_CONFIG_HEADER. Substitute
[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
03c4ce2f 18rce_files="cpu-rce.c aout-rce.c"
d94aca1a 19
03c4ce2f
MT
20if ( echo $* | grep keep\-rce > /dev/null ) ; then
21 keep_these_too="${rce_files} ${keep_these_too}"
d94aca1a 22else
03c4ce2f 23 lose_these_too="${rce_files} ${lose_these_too}"
d94aca1a
MT
24fi
25
05cedcf6
DE
26arc_files="cpu-arc.c elf32-arc.c"
27
28if ( echo $* | grep keep\-arc > /dev/null ) ; then
29 keep_these_too="${arc_files} ${keep_these_too}"
30else
31 lose_these_too="${arc_files} ${lose_these_too}"
32fi
33
08942d11
RP
34# All files listed between the "Things-to-keep:" line and the
35# "Files-to-sed:" line will be kept. All other files will be removed.
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
08942d11 46Makefile.in
c3e964b9 47PORTING
08942d11 48TODO
8c1891af 49VERSION
b7577823 50acconfig.h
f515fb2f 51aclocal.m4
60ac749c 52aix386-core.c
c3e964b9 53aout-adobe.c
ff15324f 54aout-arm.c
c3e964b9 55aout-encap.c
56fbe889 56aout-ns32k.c
c3e964b9 57aout-target.h
77d11284 58aout0.c
08942d11
RP
59aout32.c
60aout64.c
61aoutf1.h
08942d11
RP
62aoutx.h
63archive.c
64archures.c
901c5bfd 65bfd-in.h
b9653d81 66bfd-in2.h
08942d11 67bfd.c
c768bd3f 68binary.c
08942d11
RP
69bout.c
70cache.c
e3b5bfa8
SS
71cf-i386lynx.c
72cf-m68klynx.c
73cf-sparclynx.c
5d70e4d1 74cisco-core.c
156e3852 75coff-a29k.c
a3444c49 76coff-arm.c
c3e964b9 77coff-alpha.c
97eb2f0c 78coff-apollo.c
c06e55d9 79coff-go32.c
71e34032 80coff-h8300.c
ff975a2c 81coff-h8500.c
156e3852
JG
82coff-i386.c
83coff-i960.c
c3e964b9 84coff-m68k.c
156e3852
JG
85coff-m88k.c
86coff-mips.c
87coff-rs6000.c
9faacb92 88coff-sh.c
e3b5bfa8 89coff-sparc.c
df61743d 90coff-u68k.c
c7551f76 91coff-we32k.c
d468a149 92coff-w65.c
d41ab714 93coff-z8k.c
08942d11 94coffcode.h
075caafd 95coffgen.c
69645d10 96cofflink.c
075caafd 97coffswap.h
14616002 98config.bfd
b7577823 99config.h.in
7c1a9ec3 100configure
13b351cc 101configure.bat
5a5fa368 102configure.host
c3e964b9 103configure.in
6f715d66 104core.c
c3e964b9
FF
105cpu-a29k.c
106cpu-alpha.c
6c3bc2b8 107cpu-arm.c
c3e964b9
FF
108cpu-h8300.c
109cpu-h8500.c
110cpu-hppa.c
111cpu-i386.c
112cpu-i960.c
113cpu-m68k.c
114cpu-m88k.c
115cpu-mips.c
e26e4fbc 116cpu-ns32k.c
384c1791 117cpu-powerpc.c
c3e964b9
FF
118cpu-rs6000.c
119cpu-sh.c
120cpu-sparc.c
121cpu-vax.c
122cpu-we32k.c
d468a149 123cpu-w65.c
c3e964b9 124cpu-z8k.c
08942d11 125demo64.c
97eb2f0c 126dep-in.sed
c3e964b9 127doc
dae31cf5 128ecoff.c
71efdf83 129ecofflink.c
dae31cf5 130ecoffswap.h
cef91d75 131elf.c
d39d83c1 132elf32-gen.c
c268b400
KR
133elf32-hppa.c
134elf32-hppa.h
4743848f
KR
135elf32-i386.c
136elf32-i860.c
137elf32-m68k.c
2c4f2c72
JK
138elf32-m88k.c
139elf32-mips.c
45ccfd58 140elf32-ppc.c
8d936d1f 141elf32-sparc.c
4743848f 142elf32.c
d39d83c1 143elf64-gen.c
66599384 144elf64-sparc.c
4bf86ecb 145elf64.c
4b18dd1e 146elfxx-target.h
ef7e172e 147elfcode.h
ede4eed4
KR
148elfcore.h
149elflink.c
150elflink.h
08942d11 151filemode.c
6f715d66 152format.c
608de555 153gen-aout.c
da6b2d99
ILT
154genlink.h
155hash.c
08942d11 156host-aout.c
90c7c720 157hosts
c3e964b9 158hp300bsd.c
c268b400 159hp300hpux.c
cef91d75 160hppa_stubs.h
8a71bf96 161hppabsd-core.c
3f933620 162hpux-core.c
b7de6963 163i386aout.c
256b39e0 164i386bsd.c
bdf1b511 165i386dynix.c
afff60cd 166i386linux.c
a3f7a777 167i386netbsd.c
aef0bd99 168i386lynx.c
890eafc0 169i386mach3.c
7c2c70f3 170i386msdos.c
f8ffa548 171i386os9k.c
08942d11 172ieee.c
c3e964b9 173init.c
7ce1a446 174irix-core.c
141c97ea 175libaout.h
901c5bfd 176libbfd-in.h
08942d11
RP
177libbfd.c
178libbfd.h
901c5bfd 179libcoff-in.h
08942d11 180libcoff.h
a3b3dbdd 181libecoff.h
c3e964b9 182libelf.h
76b731f9 183libhppa.h
08942d11 184libieee.h
c3e964b9 185libnlm.h
08942d11 186liboasys.h
da6b2d99 187linker.c
3151f12f 188lynx-core.c
eefe075d 189m68klynx.c
ec35a1c2 190m68knetbsd.c
56fbe889 191m88kmach3.c
346a6d59 192makefile.dos
044c1ba9 193mipsbsd.c
241d8883
SS
194mpw-config.in
195mpw-make.in
08942d11 196newsos3.c
a3f7a777 197netbsd.h
d1f83f44 198nlm-target.h
c3e964b9 199nlm.c
1bbabdad 200nlm32-alpha.c
8fa7a236 201nlm32-i386.c
7ce8b9d1 202nlm32-ppc.c
38f422db 203nlm32-sparc.c
c3e964b9 204nlm32.c
c3e964b9
FF
205nlm64.c
206nlmcode.h
38f422db 207nlmswap.h
a3f7a777 208ns32knetbsd.c
08942d11
RP
209oasys.c
210opncls.c
4346ee0f 211osf-core.c
56fbe889 212pc532-mach.c
a3444c49 213pe-arm.c
b297038d 214pe-i386.c
4e98461f 215pei-arm.c
b297038d 216pei-i386.c
4e98461f 217peicode.h
c236d8b3 218ptrace-core.c
6f715d66 219reloc.c
075caafd 220reloc16.c
6c3bc2b8 221riscix.c
cf15d9e9 222rs6000-core.c
6f715d66 223section.c
66eca5ee
JK
224som.c
225som.h
e3b5bfa8 226sparclynx.c
a3f7a777 227sparcnetbsd.c
08942d11 228srec.c
7de245d3 229stab-syms.c
08942d11 230sunos.c
6f715d66 231syms.c
b7577823 232sysdep.h
08942d11 233targets.c
a14b2941 234tekhex.c
08942d11 235trad-core.c
c3c112fc 236versados.c
08942d11 237
87756e15
RP
238Things-to-lose:
239
775d4a40 240
08942d11
RP
241Do-last:
242
2ec2c9f4 243i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
e26e4fbc
KR
244if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
245 if [ -n "${verbose}" ] ; then
246 echo Keeping i960xl stuff in $i960xl_files.
247 fi
248else
249 if [ -n "${verbose}" ]; then
250 echo -n Cleaning i960xl in `pwd`:
251 fi
252 for f in $i960xl_files ; do
253 if [ -n "${verbose}" ] ; then
254 echo -n " " $f
255 fi
256 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
257 if [ -n "${safe}" ] ; then
258 mv $f .Recover
259 fi
260 mv new $f
261 done
262fi
263
2ec2c9f4 264rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
03c4ce2f
MT
265if ( echo $* | grep keep\-rce > /dev/null ) ; then
266 for i in $rce_files ; do
267 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 268 if [ -n "${verbose}" ] ; then
03c4ce2f 269 echo Keeping rce stuff in $i
5c680afd
MT
270 fi
271 fi
272 done
273else
03c4ce2f
MT
274 for i in $rce_files ; do
275 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 276 if [ -n "${verbose}" ] ; then
03c4ce2f 277 echo Removing traces of \"rce\" from $i...
5c680afd
MT
278 fi
279 cp $i new
03c4ce2f 280 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5c680afd
MT
281 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
282 if [ -n "${verbose}" ] ; then
283 echo Caching $i in .Recover...
284 fi
285 mv $i .Recover
286 fi
287 mv new $i
288 fi
289 done
290fi
291
2ec2c9f4 292arc_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
293if ( echo $* | grep keep\-arc > /dev/null ) ; then
294 for i in $arc_files ; do
295 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
296 if [ -n "${verbose}" ] ; then
297 echo Keeping arc stuff in $i
298 fi
299 fi
300 done
301else
302 for i in $arc_files ; do
303 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Removing traces of \"arc\" from $i...
306 fi
307 cp $i new
308 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
309 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
310 if [ -n "${verbose}" ] ; then
311 echo Caching $i in .Recover...
312 fi
313 mv $i .Recover
314 fi
315 mv new $i
316 fi
317 done
318fi
319
5c680afd
MT
320for i in * ; do
321 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
322 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
323 fi
324done
325
08942d11 326# End of file.
This page took 0.16121 seconds and 4 git commands to generate.