Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
[binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 rce_files="cpu-rce.c aout-rce.c"
19
20 if ( echo $* | grep keep\-rce > /dev/null ) ; then
21 keep_these_too="${rce_files} ${keep_these_too}"
22 else
23 lose_these_too="${rce_files} ${lose_these_too}"
24 fi
25
26 arc_files="cpu-arc.c elf32-arc.c"
27
28 if ( echo $* | grep keep\-arc > /dev/null ) ; then
29 keep_these_too="${arc_files} ${keep_these_too}"
30 else
31 lose_these_too="${arc_files} ${lose_these_too}"
32 fi
33
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
40 Things-to-keep:
41
42 COPYING
43 ChangeLog
44 ChangeLog.1
45 Makefile.in
46 PORTING
47 TODO
48 VERSION
49 aix386-core.c
50 aout-adobe.c
51 aout-encap.c
52 aout-ns32k.c
53 aout-target.h
54 aout0.c
55 aout32.c
56 aout64.c
57 aoutf1.h
58 aoutx.h
59 archive.c
60 archures.c
61 bfd-in.h
62 bfd-in2.h
63 bfd.c
64 binary.c
65 bout.c
66 cache.c
67 cf-i386lynx.c
68 cf-m68klynx.c
69 cf-sparclynx.c
70 cisco-core.c
71 coff-a29k.c
72 coff-alpha.c
73 coff-apollo.c
74 coff-go32.c
75 coff-h8300.c
76 coff-h8500.c
77 coff-i386.c
78 coff-i960.c
79 coff-m68k.c
80 coff-m88k.c
81 coff-mips.c
82 coff-rs6000.c
83 coff-sh.c
84 coff-sparc.c
85 coff-u68k.c
86 coff-we32k.c
87 coff-w65.c
88 coff-z8k.c
89 coffcode.h
90 coffgen.c
91 cofflink.c
92 coffswap.h
93 config
94 config.bfd
95 configure.bat
96 configure.host
97 configure.in
98 core.c
99 cpu-a29k.c
100 cpu-alpha.c
101 cpu-arm.c
102 cpu-h8300.c
103 cpu-h8500.c
104 cpu-hppa.c
105 cpu-i386.c
106 cpu-i960.c
107 cpu-m68k.c
108 cpu-m88k.c
109 cpu-mips.c
110 cpu-ns32k.c
111 cpu-powerpc.c
112 cpu-rs6000.c
113 cpu-sh.c
114 cpu-sparc.c
115 cpu-vax.c
116 cpu-we32k.c
117 cpu-w65.c
118 cpu-z8k.c
119 demo64.c
120 dep-in.sed
121 doc
122 ecoff.c
123 ecofflink.c
124 ecoffswap.h
125 elf.c
126 elf32-gen.c
127 elf32-hppa.c
128 elf32-hppa.h
129 elf32-i386.c
130 elf32-i860.c
131 elf32-m68k.c
132 elf32-m88k.c
133 elf32-mips.c
134 elf32-ppc.c
135 elf32-sparc.c
136 elf32-target.h
137 elf32.c
138 elf64-gen.c
139 elf64-sparc.c
140 elf64-target.h
141 elf64.c
142 elfcode.h
143 filemode.c
144 format.c
145 gen-aout.c
146 genlink.h
147 hash.c
148 host-aout.c
149 hosts
150 hp300bsd.c
151 hp300hpux.c
152 hppa_stubs.h
153 hppabsd-core.c
154 hpux-core.c
155 i386aout.c
156 i386bsd.c
157 i386dynix.c
158 i386linux.c
159 i386netbsd.c
160 i386lynx.c
161 i386mach3.c
162 i386msdos.c
163 i386os9k.c
164 ieee.c
165 init.c
166 irix-core.c
167 libaout.h
168 libbfd-in.h
169 libbfd.c
170 libbfd.h
171 libcoff-in.h
172 libcoff.h
173 libecoff.h
174 libelf.h
175 libhppa.h
176 libieee.h
177 libnlm.h
178 liboasys.h
179 linker.c
180 lynx-core.c
181 m68klynx.c
182 m68knetbsd.c
183 m88kmach3.c
184 makefile.dos
185 mipsbsd.c
186 mpw-config.in
187 mpw-make.in
188 newsos3.c
189 netbsd.h
190 nlm-target.h
191 nlm.c
192 nlm32-alpha.c
193 nlm32-i386.c
194 nlm32-ppc.c
195 nlm32-sparc.c
196 nlm32.c
197 nlm64.c
198 nlmcode.h
199 nlmswap.h
200 ns32knetbsd.c
201 oasys.c
202 opncls.c
203 osf-core.c
204 pc532-mach.c
205 pe-i386.c
206 pei-i386.c
207 ptrace-core.c
208 reloc.c
209 reloc16.c
210 riscix.c
211 rs6000-core.c
212 section.c
213 som.c
214 som.h
215 sparclynx.c
216 sparcnetbsd.c
217 srec.c
218 stab-syms.c
219 sunos.c
220 syms.c
221 targets.c
222 tekhex.c
223 trad-core.c
224
225 Things-to-lose:
226
227
228 Do-last:
229
230 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
231 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
232 if [ -n "${verbose}" ] ; then
233 echo Keeping i960xl stuff in $i960xl_files.
234 fi
235 else
236 if [ -n "${verbose}" ]; then
237 echo -n Cleaning i960xl in `pwd`:
238 fi
239 for f in $i960xl_files ; do
240 if [ -n "${verbose}" ] ; then
241 echo -n " " $f
242 fi
243 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
244 if [ -n "${safe}" ] ; then
245 mv $f .Recover
246 fi
247 mv new $f
248 done
249 fi
250
251 rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
252 if ( echo $* | grep keep\-rce > /dev/null ) ; then
253 for i in $rce_files ; do
254 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
255 if [ -n "${verbose}" ] ; then
256 echo Keeping rce stuff in $i
257 fi
258 fi
259 done
260 else
261 for i in $rce_files ; do
262 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
263 if [ -n "${verbose}" ] ; then
264 echo Removing traces of \"rce\" from $i...
265 fi
266 cp $i new
267 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
268 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
269 if [ -n "${verbose}" ] ; then
270 echo Caching $i in .Recover...
271 fi
272 mv $i .Recover
273 fi
274 mv new $i
275 fi
276 done
277 fi
278
279 arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
280 if ( echo $* | grep keep\-arc > /dev/null ) ; then
281 for i in $arc_files ; do
282 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
283 if [ -n "${verbose}" ] ; then
284 echo Keeping arc stuff in $i
285 fi
286 fi
287 done
288 else
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 Removing traces of \"arc\" from $i...
293 fi
294 cp $i new
295 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
296 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
297 if [ -n "${verbose}" ] ; then
298 echo Caching $i in .Recover...
299 fi
300 mv $i .Recover
301 fi
302 mv new $i
303 fi
304 done
305 fi
306
307 for i in * ; do
308 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
309 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
310 fi
311 done
312
313 # End of file.