start-sanitize-powerpc-netware
[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
1bea1b6f
KR
18if ( echo $* | grep keep\-v9 > /dev/null ) ; then
19 keep_these_too="elf64-sparc.c"
f7df1b2b
FF
20else
21 lose_these_too="elf64-sparc.c"
1bea1b6f
KR
22fi
23
a92c5906 24if ( echo $* | grep keep\-mpw > /dev/null ) ; then
e4c7516b
SS
25 keep_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${keep_these_too}"
26else
27 lose_these_too="mpw-make.in mpw-config.in ChangeLog.mpw ${lose_these_too}"
28fi
29
30if ( echo $* | grep keep\-gm > /dev/null ) ; then
8b0f1c20 31 keep_these_too="ChangeLog.gm ${keep_these_too}"
e4c7516b 32else
8b0f1c20 33 lose_these_too="ChangeLog.gm ${lose_these_too}"
a92c5906
SS
34fi
35
99ec1f66 36if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
45ccfd58 37 keep_these_too="nlm32-ppc.c ${keep_these_too}"
99ec1f66 38else
45ccfd58 39 lose_these_too="nlm32-ppc.c ${lose_these_too}"
99ec1f66
ILT
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
60aout-target.h
08942d11
RP
61aout32.c
62aout64.c
63aoutf1.h
08942d11
RP
64aoutx.h
65archive.c
66archures.c
901c5bfd 67bfd-in.h
b9653d81 68bfd-in2.h
08942d11 69bfd.c
08942d11
RP
70bout.c
71cache.c
e3b5bfa8
SS
72cf-i386lynx.c
73cf-m68klynx.c
74cf-sparclynx.c
5d70e4d1 75cisco-core.c
156e3852 76coff-a29k.c
c3e964b9 77coff-alpha.c
97eb2f0c 78coff-apollo.c
71e34032 79coff-h8300.c
ff975a2c 80coff-h8500.c
156e3852
JG
81coff-i386.c
82coff-i960.c
c3e964b9 83coff-m68k.c
156e3852
JG
84coff-m88k.c
85coff-mips.c
86coff-rs6000.c
9faacb92 87coff-sh.c
e3b5bfa8 88coff-sparc.c
df61743d 89coff-u68k.c
c7551f76 90coff-we32k.c
d41ab714 91coff-z8k.c
08942d11 92coffcode.h
075caafd
ILT
93coffgen.c
94coffswap.h
fb1c4481 95config
14616002 96config.bfd
13b351cc 97configure.bat
5a5fa368 98configure.host
c3e964b9 99configure.in
6f715d66 100core.c
c3e964b9
FF
101cpu-a29k.c
102cpu-alpha.c
103cpu-h8300.c
104cpu-h8500.c
105cpu-hppa.c
106cpu-i386.c
107cpu-i960.c
108cpu-m68k.c
109cpu-m88k.c
110cpu-mips.c
384c1791 111cpu-powerpc.c
c3e964b9
FF
112cpu-rs6000.c
113cpu-sh.c
114cpu-sparc.c
115cpu-vax.c
116cpu-we32k.c
117cpu-z8k.c
118ctor.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
b864c03c 139elf64-target.h
4bf86ecb 140elf64.c
ef7e172e 141elfcode.h
08942d11 142filemode.c
6f715d66 143format.c
608de555 144gen-aout.c
da6b2d99
ILT
145genlink.h
146hash.c
08942d11 147host-aout.c
90c7c720 148hosts
c3e964b9 149hp300bsd.c
c268b400 150hp300hpux.c
cef91d75 151hppa_stubs.h
8a71bf96 152hppabsd-core.c
3f933620 153hpux-core.c
b7de6963 154i386aout.c
256b39e0 155i386bsd.c
bdf1b511 156i386dynix.c
afff60cd 157i386linux.c
aef0bd99 158i386lynx.c
890eafc0 159i386mach3.c
f8ffa548 160i386os9k.c
08942d11 161ieee.c
c3e964b9 162init.c
7ce1a446 163irix-core.c
141c97ea 164libaout.h
901c5bfd 165libbfd-in.h
08942d11
RP
166libbfd.c
167libbfd.h
901c5bfd 168libcoff-in.h
08942d11 169libcoff.h
a3b3dbdd 170libecoff.h
c3e964b9 171libelf.h
76b731f9 172libhppa.h
08942d11 173libieee.h
c3e964b9 174libnlm.h
08942d11 175liboasys.h
da6b2d99 176linker.c
3151f12f 177lynx-core.c
eefe075d 178m68klynx.c
044c1ba9 179mipsbsd.c
08942d11 180newsos3.c
fbd5481a 181netbsd386.c
d1f83f44 182nlm-target.h
c3e964b9 183nlm.c
1bbabdad 184nlm32-alpha.c
8fa7a236 185nlm32-i386.c
38f422db 186nlm32-sparc.c
c3e964b9 187nlm32.c
c3e964b9
FF
188nlm64.c
189nlmcode.h
38f422db 190nlmswap.h
08942d11
RP
191oasys.c
192opncls.c
4346ee0f 193osf-core.c
c236d8b3 194ptrace-core.c
6f715d66 195reloc.c
075caafd 196reloc16.c
cf15d9e9 197rs6000-core.c
6f715d66 198section.c
66eca5ee
JK
199som.c
200som.h
e3b5bfa8 201sparclynx.c
08942d11 202srec.c
7de245d3 203stab-syms.c
08942d11 204sunos.c
6f715d66 205syms.c
08942d11 206targets.c
a14b2941 207tekhex.c
08942d11 208trad-core.c
08942d11 209
87756e15
RP
210Things-to-lose:
211
775d4a40 212
08942d11
RP
213Do-last:
214
3d7de4c2 215v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd"
b9653d81 216if ( echo $* | grep keep\-v9 > /dev/null ) ; then
b864c03c
KR
217 if [ -n "${verbose}" ] ; then
218 echo Keeping v9 stuff in $v9files.
219 fi
b9653d81 220else
b864c03c 221 if [ -n "${verbose}" ]; then
1bea1b6f 222 echo -n Cleaning v9 in `pwd`:
b864c03c
KR
223 fi
224 for f in $v9files ; do
225 if [ -n "${verbose}" ] ; then
226 echo -n " " $f
227 fi
1bea1b6f 228 sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new
b864c03c 229 if [ -n "${safe}" ] ; then
1bea1b6f 230 mv $f .Recover
b864c03c
KR
231 fi
232 mv new $f
233 done
3ba17f70 234 chmod a+x config.bfd
b9653d81
KR
235fi
236
3ba17f70 237
fbe3316a
SS
238mpwfiles="coffswap.h"
239if ( echo $* | grep keep\-mpw > /dev/null ) ; then
240 if [ -n "${verbose}" ] ; then
241 echo Keeping mpw stuff in $mpwfiles.
242 fi
243else
244 if [ -n "${verbose}" ]; then
245 echo -n Cleaning mpw in `pwd`:
246 fi
247 for f in $mpwfiles ; do
248 if [ -n "${verbose}" ] ; then
249 echo -n " " $f
250 fi
251 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
252 if [ -n "${safe}" ] ; then
253 mv $f .Recover
254 fi
255 mv new $f
256 done
257 chmod a+x config.bfd
258fi
259
260
99ec1f66
ILT
261ppcfiles="ChangeLog Makefile.in configure.in config.bfd targets.c"
262if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
263 if [ -n "${verbose}" ] ; then
264 echo Keeping PowerPC NetWare stuff in $ppcfiles.
265 fi
266else
267 if [ -n "${verbose}" ]; then
268 echo -n Removing PowerPC NetWare in `pwd`:
269 fi
270 for f in $ppcfiles ; do
271 if [ -n "${verbose}" ] ; then
272 echo -n " " $f
273 fi
274 sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
275 if [ -n "${safe}" ] ; then
276 mv $f .Recover
277 fi
278 mv new $f
279 done
280 chmod a+x config.bfd
281fi
282
283
08942d11 284# End of file.
This page took 0.153696 seconds and 4 git commands to generate.