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