Grrr. The mn10200 and mn10300 are _not_ similar enough to easily support
[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 arc_files="cpu-arc.c elf32-arc.c"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d10v_files="cpu-d10v.c elf32-d10v.c"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32 fi
33
34 m32r_files="cpu-m32r.c elf32-m32r.c"
35
36 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
37 keep_these_too="${m32r_files} ${keep_these_too}"
38 else
39 lose_these_too="${m32r_files} ${lose_these_too}"
40 fi
41
42 v850_files="cpu-v850.c elf32-v850.c"
43
44 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46 else
47 lose_these_too="${v850_files} ${lose_these_too}"
48 fi
49
50 # All files listed between the "Things-to-keep:" line and the
51 # "Files-to-sed:" line will be kept. All other files will be removed.
52 # Directories listed in this section will have their own Sanitize
53 # called. Directories not listed will be removed in their entirety
54 # with rm -rf.
55
56 Things-to-keep:
57
58 COPYING
59 ChangeLog
60 ChangeLog.1
61 ChangeLog.2
62 Makefile.in
63 PORTING
64 README
65 TODO
66 VERSION
67 acconfig.h
68 aclocal.m4
69 aix386-core.c
70 aout-adobe.c
71 aout-arm.c
72 aout-encap.c
73 aout-ns32k.c
74 aout-sparcle.c
75 aout-target.h
76 aout0.c
77 aout32.c
78 aout64.c
79 aoutf1.h
80 aoutx.h
81 archive.c
82 archures.c
83 bfd-in.h
84 bfd-in2.h
85 bfd.c
86 binary.c
87 bout.c
88 cache.c
89 cf-i386lynx.c
90 cf-m68klynx.c
91 cf-sparclynx.c
92 cisco-core.c
93 coff-a29k.c
94 coff-alpha.c
95 coff-apollo.c
96 coff-arm.c
97 coff-aux.c
98 coff-go32.c
99 coff-h8300.c
100 coff-h8500.c
101 coff-i386.c
102 coff-i860.c
103 coff-i960.c
104 coff-m68k.c
105 coff-m88k.c
106 coff-mips.c
107 coff-pmac.c
108 coff-ppc.c
109 coff-rs6000.c
110 coff-sh.c
111 coff-sparc.c
112 coff-u68k.c
113 coff-we32k.c
114 coff-w65.c
115 coff-z8k.c
116 coffcode.h
117 coffgen.c
118 cofflink.c
119 coffswap.h
120 config.bfd
121 config.h-vms
122 config.in
123 configure
124 configure.bat
125 configure.host
126 configure.in
127 corefile.c
128 cpu-a29k.c
129 cpu-alpha.c
130 cpu-arm.c
131 cpu-h8300.c
132 cpu-h8500.c
133 cpu-hppa.c
134 cpu-i386.c
135 cpu-i860.c
136 cpu-i960.c
137 cpu-m68k.c
138 cpu-m88k.c
139 cpu-mips.c
140 cpu-mn10200.c
141 cpu-mn10300.c
142 cpu-ns32k.c
143 cpu-powerpc.c
144 cpu-rs6000.c
145 cpu-sh.c
146 cpu-sparc.c
147 cpu-vax.c
148 cpu-we32k.c
149 cpu-w65.c
150 cpu-z8k.c
151 demo64.c
152 dep-in.sed
153 doc
154 ecoff.c
155 ecofflink.c
156 ecoffswap.h
157 elf-bfd.h
158 elf.c
159 elf32-gen.c
160 elf32-hppa.c
161 elf32-hppa.h
162 elf32-i386.c
163 elf32-i860.c
164 elf32-m68k.c
165 elf32-m88k.c
166 elf32-mips.c
167 elf32-mn10200.c
168 elf32-mn10300.c
169 elf32-ppc.c
170 elf32-sh.c
171 elf32-sparc.c
172 elf32.c
173 elf64-alpha.c
174 elf64-gen.c
175 elf64-mips.c
176 elf64-sparc.c
177 elf64.c
178 elfxx-target.h
179 elfcode.h
180 elfcore.h
181 elflink.c
182 elflink.h
183 evax.h
184 evax-alpha.c
185 evax-egsd.c
186 evax-emh.c
187 evax-etir.c
188 evax-misc.c
189 filemode.c
190 format.c
191 freebsd.h
192 gen-aout.c
193 genlink.h
194 hash.c
195 host-aout.c
196 hosts
197 hp300bsd.c
198 hp300hpux.c
199 hppa_stubs.h
200 hppabsd-core.c
201 hpux-core.c
202 i386aout.c
203 i386bsd.c
204 i386dynix.c
205 i386freebsd.c
206 i386linux.c
207 i386netbsd.c
208 i386lynx.c
209 i386mach3.c
210 i386msdos.c
211 i386os9k.c
212 ieee.c
213 ihex.c
214 init.c
215 irix-core.c
216 libaout.h
217 libbfd-in.h
218 libbfd.c
219 libbfd.h
220 libcoff-in.h
221 libcoff.h
222 libecoff.h
223 libhppa.h
224 libieee.h
225 libnlm.h
226 liboasys.h
227 linker.c
228 lynx-core.c
229 m68k4knetbsd.c
230 m68klinux.c
231 m68klynx.c
232 m68knetbsd.c
233 m88kmach3.c
234 makefile.dos
235 makefile.vms
236 mipsbsd.c
237 mpw-config.in
238 mpw-make.sed
239 newsos3.c
240 netbsd-core.c
241 netbsd.h
242 nlm-target.h
243 nlm.c
244 nlm32-alpha.c
245 nlm32-i386.c
246 nlm32-ppc.c
247 nlm32-sparc.c
248 nlm32.c
249 nlm64.c
250 nlmcode.h
251 nlmswap.h
252 ns32k.h
253 ns32knetbsd.c
254 oasys.c
255 opncls.c
256 osf-core.c
257 pc532-mach.c
258 pe-arm.c
259 pe-i386.c
260 pe-ppc.c
261 pei-arm.c
262 pei-i386.c
263 pei-ppc.c
264 peicode.h
265 ppcboot.c
266 ptrace-core.c
267 reloc.c
268 reloc16.c
269 riscix.c
270 rs6000-core.c
271 section.c
272 som.c
273 som.h
274 sparclynx.c
275 sparcnetbsd.c
276 srec.c
277 stabs.c
278 stab-syms.c
279 sunos.c
280 syms.c
281 sysdep.h
282 targets.c
283 tekhex.c
284 trad-core.c
285 versados.c
286 xcofflink.c
287
288 Things-to-lose:
289
290
291 Do-last:
292
293 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"
294 if ( echo $* | grep keep\-arc > /dev/null ) ; then
295 for i in $arc_files ; do
296 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
297 if [ -n "${verbose}" ] ; then
298 echo Keeping arc stuff in $i
299 fi
300 fi
301 done
302 else
303 for i in $arc_files ; do
304 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
305 if [ -n "${verbose}" ] ; then
306 echo Removing traces of \"arc\" from $i...
307 fi
308 cp $i new
309 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
310 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
311 if [ -n "${verbose}" ] ; then
312 echo Caching $i in .Recover...
313 fi
314 mv $i .Recover
315 fi
316 mv new $i
317 fi
318 done
319 fi
320
321 d10v_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
322 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
323 for i in $d10v_files ; do
324 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
325 if [ -n "${verbose}" ] ; then
326 echo Keeping d10v stuff in $i
327 fi
328 fi
329 done
330 else
331 for i in $d10v_files ; do
332 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
333 if [ -n "${verbose}" ] ; then
334 echo Removing traces of \"d10v\" from $i...
335 fi
336 cp $i new
337 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
338 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
339 if [ -n "${verbose}" ] ; then
340 echo Caching $i in .Recover...
341 fi
342 mv $i .Recover
343 fi
344 mv new $i
345 fi
346 done
347 fi
348
349 m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
350 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
351 for i in $m32r_files ; do
352 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
353 if [ -n "${verbose}" ] ; then
354 echo Keeping m32r stuff in $i
355 fi
356 fi
357 done
358 else
359 for i in $m32r_files ; do
360 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
361 if [ -n "${verbose}" ] ; then
362 echo Removing traces of \"m32r\" from $i...
363 fi
364 cp $i new
365 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
366 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
367 if [ -n "${verbose}" ] ; then
368 echo Caching $i in .Recover...
369 fi
370 mv $i .Recover
371 fi
372 mv new $i
373 fi
374 done
375 fi
376
377 v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
378 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
379 for i in $v850_files ; do
380 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
381 if [ -n "${verbose}" ] ; then
382 echo Keeping v850 stuff in $i
383 fi
384 fi
385 done
386 else
387 for i in $v850_files ; do
388 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
389 if [ -n "${verbose}" ] ; then
390 echo Removing traces of \"v850\" from $i...
391 fi
392 cp $i new
393 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
394 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
395 if [ -n "${verbose}" ] ; then
396 echo Caching $i in .Recover...
397 fi
398 mv $i .Recover
399 fi
400 mv new $i
401 fi
402 done
403 fi
404
405 gm_files="ChangeLog ChangeLog.2 config.bfd"
406 if ( echo $* | grep keep\-gm > /dev/null ) ; then
407 for i in $gm_files ; do
408 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
409 if [ -n "${verbose}" ] ; then
410 echo Keeping gm stuff in $i
411 fi
412 fi
413 done
414 else
415 for i in $gm_files ; do
416 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Removing traces of \"gm\" from $i...
419 fi
420 cp $i new
421 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
422 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
423 if [ -n "${verbose}" ] ; then
424 echo Caching $i in .Recover...
425 fi
426 mv $i .Recover
427 fi
428 mv new $i
429 fi
430 done
431 fi
432
433 for i in * ; do
434 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
435 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
436 fi
437 done
438
439 # End of file.