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