update dependencies
[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
75c8a303 18mpw_files="mpw-config.in mpw-make.in ChangeLog.mpw"
e4c7516b 19
75c8a303
SS
20if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21 keep_these_too="${mpw_files} ${keep_these_too}"
e4c7516b 22else
75c8a303 23 lose_these_too="${mpw_files} ${lose_these_too}"
a92c5906
SS
24fi
25
03c4ce2f 26rce_files="cpu-rce.c aout-rce.c"
d94aca1a 27
03c4ce2f
MT
28if ( echo $* | grep keep\-rce > /dev/null ) ; then
29 keep_these_too="${rce_files} ${keep_these_too}"
d94aca1a 30else
03c4ce2f 31 lose_these_too="${rce_files} ${lose_these_too}"
d94aca1a
MT
32fi
33
05cedcf6
DE
34arc_files="cpu-arc.c elf32-arc.c"
35
36if ( echo $* | grep keep\-arc > /dev/null ) ; then
37 keep_these_too="${arc_files} ${keep_these_too}"
38else
39 lose_these_too="${arc_files} ${lose_these_too}"
40fi
41
08942d11
RP
42# All files listed between the "Things-to-keep:" line and the
43# "Files-to-sed:" line will be kept. All other files will be removed.
44# Directories listed in this section will have their own Sanitize
45# called. Directories not listed will be removed in their entirety
46# with rm -rf.
47
48Things-to-keep:
87756e15 49
08942d11
RP
50COPYING
51ChangeLog
ceeca31c 52ChangeLog.1
08942d11 53Makefile.in
c3e964b9 54PORTING
08942d11 55TODO
8c1891af 56VERSION
60ac749c 57aix386-core.c
c3e964b9
FF
58aout-adobe.c
59aout-encap.c
56fbe889 60aout-ns32k.c
c3e964b9 61aout-target.h
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
c06e55d9 82coff-go32.c
71e34032 83coff-h8300.c
ff975a2c 84coff-h8500.c
156e3852
JG
85coff-i386.c
86coff-i960.c
c3e964b9 87coff-m68k.c
156e3852
JG
88coff-m88k.c
89coff-mips.c
90coff-rs6000.c
9faacb92 91coff-sh.c
e3b5bfa8 92coff-sparc.c
df61743d 93coff-u68k.c
c7551f76 94coff-we32k.c
d468a149 95coff-w65.c
d41ab714 96coff-z8k.c
08942d11 97coffcode.h
075caafd 98coffgen.c
69645d10 99cofflink.c
075caafd 100coffswap.h
fb1c4481 101config
14616002 102config.bfd
13b351cc 103configure.bat
5a5fa368 104configure.host
c3e964b9 105configure.in
6f715d66 106core.c
c3e964b9
FF
107cpu-a29k.c
108cpu-alpha.c
6c3bc2b8 109cpu-arm.c
c3e964b9
FF
110cpu-h8300.c
111cpu-h8500.c
112cpu-hppa.c
113cpu-i386.c
114cpu-i960.c
115cpu-m68k.c
116cpu-m88k.c
117cpu-mips.c
e26e4fbc 118cpu-ns32k.c
384c1791 119cpu-powerpc.c
c3e964b9
FF
120cpu-rs6000.c
121cpu-sh.c
122cpu-sparc.c
123cpu-vax.c
124cpu-we32k.c
d468a149 125cpu-w65.c
c3e964b9 126cpu-z8k.c
08942d11 127demo64.c
97eb2f0c 128dep-in.sed
c3e964b9 129doc
dae31cf5 130ecoff.c
71efdf83 131ecofflink.c
dae31cf5 132ecoffswap.h
cef91d75 133elf.c
d39d83c1 134elf32-gen.c
c268b400
KR
135elf32-hppa.c
136elf32-hppa.h
4743848f
KR
137elf32-i386.c
138elf32-i860.c
139elf32-m68k.c
2c4f2c72
JK
140elf32-m88k.c
141elf32-mips.c
45ccfd58 142elf32-ppc.c
8d936d1f 143elf32-sparc.c
4743848f
KR
144elf32-target.h
145elf32.c
d39d83c1 146elf64-gen.c
66599384 147elf64-sparc.c
b864c03c 148elf64-target.h
4bf86ecb 149elf64.c
ef7e172e 150elfcode.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
08942d11 194newsos3.c
a3f7a777 195netbsd.h
d1f83f44 196nlm-target.h
c3e964b9 197nlm.c
1bbabdad 198nlm32-alpha.c
8fa7a236 199nlm32-i386.c
7ce8b9d1 200nlm32-ppc.c
38f422db 201nlm32-sparc.c
c3e964b9 202nlm32.c
c3e964b9
FF
203nlm64.c
204nlmcode.h
38f422db 205nlmswap.h
a3f7a777 206ns32knetbsd.c
08942d11
RP
207oasys.c
208opncls.c
4346ee0f 209osf-core.c
56fbe889 210pc532-mach.c
c236d8b3 211ptrace-core.c
6f715d66 212reloc.c
075caafd 213reloc16.c
6c3bc2b8 214riscix.c
cf15d9e9 215rs6000-core.c
6f715d66 216section.c
66eca5ee
JK
217som.c
218som.h
e3b5bfa8 219sparclynx.c
a3f7a777 220sparcnetbsd.c
08942d11 221srec.c
7de245d3 222stab-syms.c
08942d11 223sunos.c
6f715d66 224syms.c
08942d11 225targets.c
a14b2941 226tekhex.c
08942d11 227trad-core.c
08942d11 228
87756e15
RP
229Things-to-lose:
230
775d4a40 231
08942d11
RP
232Do-last:
233
5c680afd 234mpwfiles="ecoffswap.h coffswap.h"
fbe3316a
SS
235if ( echo $* | grep keep\-mpw > /dev/null ) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Keeping mpw stuff in $mpwfiles.
238 fi
239else
240 if [ -n "${verbose}" ]; then
241 echo -n Cleaning mpw in `pwd`:
242 fi
243 for f in $mpwfiles ; do
244 if [ -n "${verbose}" ] ; then
245 echo -n " " $f
246 fi
247 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
248 if [ -n "${safe}" ] ; then
249 mv $f .Recover
250 fi
251 mv new $f
252 done
253 chmod a+x config.bfd
254fi
255
e26e4fbc
KR
256i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
257if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
258 if [ -n "${verbose}" ] ; then
259 echo Keeping i960xl stuff in $i960xl_files.
260 fi
261else
262 if [ -n "${verbose}" ]; then
263 echo -n Cleaning i960xl in `pwd`:
264 fi
265 for f in $i960xl_files ; do
266 if [ -n "${verbose}" ] ; then
267 echo -n " " $f
268 fi
269 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
270 if [ -n "${safe}" ] ; then
271 mv $f .Recover
272 fi
273 mv new $f
274 done
275fi
276
8f12e98a 277rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
03c4ce2f
MT
278if ( echo $* | grep keep\-rce > /dev/null ) ; then
279 for i in $rce_files ; do
280 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 281 if [ -n "${verbose}" ] ; then
03c4ce2f 282 echo Keeping rce stuff in $i
5c680afd
MT
283 fi
284 fi
285 done
286else
03c4ce2f
MT
287 for i in $rce_files ; do
288 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 289 if [ -n "${verbose}" ] ; then
03c4ce2f 290 echo Removing traces of \"rce\" from $i...
5c680afd
MT
291 fi
292 cp $i new
03c4ce2f 293 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5c680afd
MT
294 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
295 if [ -n "${verbose}" ] ; then
296 echo Caching $i in .Recover...
297 fi
298 mv $i .Recover
299 fi
300 mv new $i
301 fi
302 done
303fi
304
8f12e98a 305arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h 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
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
5c680afd
MT
333for i in * ; do
334 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
335 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
336 fi
337done
338
08942d11 339# End of file.
This page took 0.146959 seconds and 4 git commands to generate.