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