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