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