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