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