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