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