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