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