Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
[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 ChangeLog.2
46 Makefile.in
47 PORTING
48 TODO
49 VERSION
50 acconfig.h
51 aclocal.m4
52 aix386-core.c
53 aout-adobe.c
54 aout-arm.c
55 aout-encap.c
56 aout-ns32k.c
57 aout-target.h
58 aout0.c
59 aout32.c
60 aout64.c
61 aoutf1.h
62 aoutx.h
63 archive.c
64 archures.c
65 bfd-in.h
66 bfd-in2.h
67 bfd.c
68 binary.c
69 bout.c
70 cache.c
71 cf-i386lynx.c
72 cf-m68klynx.c
73 cf-sparclynx.c
74 cisco-core.c
75 coff-a29k.c
76 coff-alpha.c
77 coff-apollo.c
78 coff-arm.c
79 coff-aux.c
80 coff-go32.c
81 coff-h8300.c
82 coff-h8500.c
83 coff-i386.c
84 coff-i860.c
85 coff-i960.c
86 coff-m68k.c
87 coff-m88k.c
88 coff-mips.c
89 coff-pmac.c
90 coff-ppc.c
91 coff-rs6000.c
92 coff-sh.c
93 coff-sparc.c
94 coff-u68k.c
95 coff-we32k.c
96 coff-w65.c
97 coff-z8k.c
98 coffcode.h
99 coffgen.c
100 cofflink.c
101 coffswap.h
102 config.bfd
103 config.in
104 configure
105 configure.bat
106 configure.host
107 configure.in
108 corefile.c
109 cpu-a29k.c
110 cpu-alpha.c
111 cpu-arm.c
112 cpu-h8300.c
113 cpu-h8500.c
114 cpu-hppa.c
115 cpu-i386.c
116 cpu-i860.c
117 cpu-i960.c
118 cpu-m68k.c
119 cpu-m88k.c
120 cpu-mips.c
121 cpu-ns32k.c
122 cpu-powerpc.c
123 cpu-rs6000.c
124 cpu-sh.c
125 cpu-sparc.c
126 cpu-vax.c
127 cpu-we32k.c
128 cpu-w65.c
129 cpu-z8k.c
130 demo64.c
131 dep-in.sed
132 doc
133 ecoff.c
134 ecofflink.c
135 ecoffswap.h
136 elf-bfd.h
137 elf.c
138 elf32-gen.c
139 elf32-hppa.c
140 elf32-hppa.h
141 elf32-i386.c
142 elf32-i860.c
143 elf32-m68k.c
144 elf32-m88k.c
145 elf32-mips.c
146 elf32-ppc.c
147 elf32-sparc.c
148 elf32.c
149 elf64-gen.c
150 elf64-sparc.c
151 elf64.c
152 elfxx-target.h
153 elfcode.h
154 elfcore.h
155 elflink.c
156 elflink.h
157 filemode.c
158 format.c
159 freebsd.h
160 gen-aout.c
161 genlink.h
162 hash.c
163 host-aout.c
164 hosts
165 hp300bsd.c
166 hp300hpux.c
167 hppa_stubs.h
168 hppabsd-core.c
169 hpux-core.c
170 i386aout.c
171 i386bsd.c
172 i386dynix.c
173 i386freebsd.c
174 i386linux.c
175 i386netbsd.c
176 i386lynx.c
177 i386mach3.c
178 i386msdos.c
179 i386os9k.c
180 ieee.c
181 ihex.c
182 init.c
183 irix-core.c
184 libaout.h
185 libbfd-in.h
186 libbfd.c
187 libbfd.h
188 libcoff-in.h
189 libcoff.h
190 libecoff.h
191 libhppa.h
192 libieee.h
193 libnlm.h
194 liboasys.h
195 linker.c
196 lynx-core.c
197 m68k4knetbsd.c
198 m68klynx.c
199 m68knetbsd.c
200 m88kmach3.c
201 makefile.dos
202 mipsbsd.c
203 mpw-config.in
204 mpw-make.sed
205 newsos3.c
206 netbsd.h
207 nlm-target.h
208 nlm.c
209 nlm32-alpha.c
210 nlm32-i386.c
211 nlm32-ppc.c
212 nlm32-sparc.c
213 nlm32.c
214 nlm64.c
215 nlmcode.h
216 nlmswap.h
217 ns32knetbsd.c
218 oasys.c
219 opncls.c
220 osf-core.c
221 pc532-mach.c
222 pe-arm.c
223 pe-i386.c
224 pe-ppc.c
225 pei-arm.c
226 pei-i386.c
227 pei-ppc.c
228 peicode.h
229 ptrace-core.c
230 reloc.c
231 reloc16.c
232 riscix.c
233 rs6000-core.c
234 section.c
235 som.c
236 som.h
237 sparclynx.c
238 sparcnetbsd.c
239 srec.c
240 stab-syms.c
241 sunos.c
242 syms.c
243 sysdep.h
244 targets.c
245 tekhex.c
246 trad-core.c
247 versados.c
248 xcofflink.c
249
250 Things-to-lose:
251
252
253 Do-last:
254
255 i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
256 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
257 if [ -n "${verbose}" ] ; then
258 echo Keeping i960xl stuff in $i960xl_files.
259 fi
260 else
261 if [ -n "${verbose}" ]; then
262 echo -n Cleaning i960xl in `pwd`:
263 fi
264 for f in $i960xl_files ; do
265 if [ -n "${verbose}" ] ; then
266 echo -n " " $f
267 fi
268 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
269 if [ -n "${safe}" ] ; then
270 mv $f .Recover
271 fi
272 mv new $f
273 done
274 fi
275
276 rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
277 if ( echo $* | grep keep\-rce > /dev/null ) ; then
278 for i in $rce_files ; do
279 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
280 if [ -n "${verbose}" ] ; then
281 echo Keeping rce stuff in $i
282 fi
283 fi
284 done
285 else
286 for i in $rce_files ; do
287 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
288 if [ -n "${verbose}" ] ; then
289 echo Removing traces of \"rce\" from $i...
290 fi
291 cp $i new
292 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
293 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
294 if [ -n "${verbose}" ] ; then
295 echo Caching $i in .Recover...
296 fi
297 mv $i .Recover
298 fi
299 mv new $i
300 fi
301 done
302 fi
303
304 arc_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
305 if ( echo $* | grep keep\-arc > /dev/null ) ; then
306 for i in $arc_files ; do
307 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
308 if [ -n "${verbose}" ] ; then
309 echo Keeping arc stuff in $i
310 fi
311 fi
312 done
313 else
314 for i in $arc_files ; do
315 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
316 if [ -n "${verbose}" ] ; then
317 echo Removing traces of \"arc\" from $i...
318 fi
319 cp $i new
320 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
321 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
322 if [ -n "${verbose}" ] ; then
323 echo Caching $i in .Recover...
324 fi
325 mv $i .Recover
326 fi
327 mv new $i
328 fi
329 done
330 fi
331
332 gm_files="ChangeLog ChangeLog.2 config.bfd"
333 if ( echo $* | grep keep\-gm > /dev/null ) ; then
334 for i in $gm_files ; do
335 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
336 if [ -n "${verbose}" ] ; then
337 echo Keeping gm stuff in $i
338 fi
339 fi
340 done
341 else
342 for i in $gm_files ; do
343 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
344 if [ -n "${verbose}" ] ; then
345 echo Removing traces of \"gm\" from $i...
346 fi
347 cp $i new
348 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
349 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
350 if [ -n "${verbose}" ] ; then
351 echo Caching $i in .Recover...
352 fi
353 mv $i .Recover
354 fi
355 mv new $i
356 fi
357 done
358 fi
359
360 for i in * ; do
361 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
362 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
363 fi
364 done
365
366 # End of file.