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