* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
[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
05cedcf6
DE
18arc_files="cpu-arc.c elf32-arc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
08942d11
RP
26# All files listed between the "Things-to-keep:" line and the
27# "Files-to-sed:" line will be kept. All other files will be removed.
28# Directories listed in this section will have their own Sanitize
29# called. Directories not listed will be removed in their entirety
30# with rm -rf.
31
32Things-to-keep:
87756e15 33
08942d11
RP
34COPYING
35ChangeLog
ceeca31c 36ChangeLog.1
1613e075 37ChangeLog.2
08942d11 38Makefile.in
c3e964b9 39PORTING
08942d11 40TODO
8c1891af 41VERSION
b7577823 42acconfig.h
f515fb2f 43aclocal.m4
60ac749c 44aix386-core.c
c3e964b9 45aout-adobe.c
ff15324f 46aout-arm.c
c3e964b9 47aout-encap.c
56fbe889 48aout-ns32k.c
c3e964b9 49aout-target.h
77d11284 50aout0.c
08942d11
RP
51aout32.c
52aout64.c
53aoutf1.h
08942d11
RP
54aoutx.h
55archive.c
56archures.c
901c5bfd 57bfd-in.h
b9653d81 58bfd-in2.h
08942d11 59bfd.c
c768bd3f 60binary.c
08942d11
RP
61bout.c
62cache.c
e3b5bfa8
SS
63cf-i386lynx.c
64cf-m68klynx.c
65cf-sparclynx.c
5d70e4d1 66cisco-core.c
156e3852 67coff-a29k.c
c3e964b9 68coff-alpha.c
97eb2f0c 69coff-apollo.c
d19df9b5
ILT
70coff-arm.c
71coff-aux.c
c06e55d9 72coff-go32.c
71e34032 73coff-h8300.c
ff975a2c 74coff-h8500.c
156e3852 75coff-i386.c
cf587de8 76coff-i860.c
156e3852 77coff-i960.c
c3e964b9 78coff-m68k.c
156e3852
JG
79coff-m88k.c
80coff-mips.c
63c67f3c 81coff-pmac.c
8d2a09b0 82coff-ppc.c
156e3852 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
14616002 94config.bfd
936b870c 95config.in
7c1a9ec3 96configure
13b351cc 97configure.bat
5a5fa368 98configure.host
c3e964b9 99configure.in
d9e771e3 100corefile.c
c3e964b9
FF
101cpu-a29k.c
102cpu-alpha.c
6c3bc2b8 103cpu-arm.c
c3e964b9
FF
104cpu-h8300.c
105cpu-h8500.c
106cpu-hppa.c
107cpu-i386.c
cf587de8 108cpu-i860.c
c3e964b9
FF
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
6ab826bd 128elf-bfd.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
d1bf45aa 142elf64-mips.c
66599384 143elf64-sparc.c
4bf86ecb 144elf64.c
4b18dd1e 145elfxx-target.h
ef7e172e 146elfcode.h
ede4eed4
KR
147elfcore.h
148elflink.c
149elflink.h
08942d11 150filemode.c
6f715d66 151format.c
767f22d5 152freebsd.h
608de555 153gen-aout.c
da6b2d99
ILT
154genlink.h
155hash.c
08942d11 156host-aout.c
90c7c720 157hosts
c3e964b9 158hp300bsd.c
c268b400 159hp300hpux.c
cef91d75 160hppa_stubs.h
8a71bf96 161hppabsd-core.c
3f933620 162hpux-core.c
b7de6963 163i386aout.c
256b39e0 164i386bsd.c
bdf1b511 165i386dynix.c
767f22d5 166i386freebsd.c
afff60cd 167i386linux.c
a3f7a777 168i386netbsd.c
aef0bd99 169i386lynx.c
890eafc0 170i386mach3.c
7c2c70f3 171i386msdos.c
f8ffa548 172i386os9k.c
08942d11 173ieee.c
ffd15489 174ihex.c
c3e964b9 175init.c
7ce1a446 176irix-core.c
141c97ea 177libaout.h
901c5bfd 178libbfd-in.h
08942d11
RP
179libbfd.c
180libbfd.h
901c5bfd 181libcoff-in.h
08942d11 182libcoff.h
a3b3dbdd 183libecoff.h
76b731f9 184libhppa.h
08942d11 185libieee.h
c3e964b9 186libnlm.h
08942d11 187liboasys.h
da6b2d99 188linker.c
3151f12f 189lynx-core.c
e295a90d 190m68k4knetbsd.c
55626bf0 191m68klinux.c
eefe075d 192m68klynx.c
ec35a1c2 193m68knetbsd.c
56fbe889 194m88kmach3.c
346a6d59 195makefile.dos
044c1ba9 196mipsbsd.c
241d8883 197mpw-config.in
63c67f3c 198mpw-make.sed
08942d11 199newsos3.c
fe16107d 200netbsd-core.c
a3f7a777 201netbsd.h
d1f83f44 202nlm-target.h
c3e964b9 203nlm.c
1bbabdad 204nlm32-alpha.c
8fa7a236 205nlm32-i386.c
7ce8b9d1 206nlm32-ppc.c
38f422db 207nlm32-sparc.c
c3e964b9 208nlm32.c
c3e964b9
FF
209nlm64.c
210nlmcode.h
38f422db 211nlmswap.h
c877bdf1 212ns32k.h
a3f7a777 213ns32knetbsd.c
08942d11
RP
214oasys.c
215opncls.c
4346ee0f 216osf-core.c
56fbe889 217pc532-mach.c
a3444c49 218pe-arm.c
b297038d 219pe-i386.c
8d2a09b0 220pe-ppc.c
4e98461f 221pei-arm.c
b297038d 222pei-i386.c
8d2a09b0 223pei-ppc.c
4e98461f 224peicode.h
0d1fcbbb 225ppcboot.c
c236d8b3 226ptrace-core.c
6f715d66 227reloc.c
075caafd 228reloc16.c
6c3bc2b8 229riscix.c
cf15d9e9 230rs6000-core.c
6f715d66 231section.c
66eca5ee
JK
232som.c
233som.h
e3b5bfa8 234sparclynx.c
a3f7a777 235sparcnetbsd.c
08942d11 236srec.c
1726b8f0 237stabs.c
7de245d3 238stab-syms.c
08942d11 239sunos.c
6f715d66 240syms.c
b7577823 241sysdep.h
08942d11 242targets.c
a14b2941 243tekhex.c
08942d11 244trad-core.c
c3c112fc 245versados.c
dd984644 246xcofflink.c
08942d11 247
87756e15
RP
248Things-to-lose:
249
775d4a40 250
08942d11
RP
251Do-last:
252
2ec2c9f4 253arc_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
05cedcf6
DE
254if ( echo $* | grep keep\-arc > /dev/null ) ; then
255 for i in $arc_files ; do
256 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
257 if [ -n "${verbose}" ] ; then
258 echo Keeping arc stuff in $i
259 fi
260 fi
261 done
262else
263 for i in $arc_files ; do
264 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
265 if [ -n "${verbose}" ] ; then
266 echo Removing traces of \"arc\" from $i...
267 fi
268 cp $i new
269 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
270 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
271 if [ -n "${verbose}" ] ; then
272 echo Caching $i in .Recover...
273 fi
274 mv $i .Recover
275 fi
276 mv new $i
277 fi
278 done
279fi
280
d6d44ef9
SG
281gm_files="ChangeLog ChangeLog.2 config.bfd"
282if ( echo $* | grep keep\-gm > /dev/null ) ; then
283 for i in $gm_files ; do
284 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
285 if [ -n "${verbose}" ] ; then
286 echo Keeping gm stuff in $i
287 fi
288 fi
289 done
290else
291 for i in $gm_files ; do
292 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
293 if [ -n "${verbose}" ] ; then
294 echo Removing traces of \"gm\" from $i...
295 fi
296 cp $i new
297 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
298 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
299 if [ -n "${verbose}" ] ; then
300 echo Caching $i in .Recover...
301 fi
302 mv $i .Recover
303 fi
304 mv new $i
305 fi
306 done
307fi
308
5c680afd
MT
309for i in * ; do
310 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
311 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
312 fi
313done
314
08942d11 315# End of file.
This page took 0.172124 seconds and 4 git commands to generate.