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