Update.
[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-fr30.c
117 cpu-h8300.c
118 cpu-h8500.c
119 cpu-hppa.c
120 cpu-i386.c
121 cpu-i860.c
122 cpu-i960.c
123 cpu-m10200.c
124 cpu-m10300.c
125 cpu-m32r.c
126 cpu-m68k.c
127 cpu-m88k.c
128 cpu-mips.c
129 cpu-ns32k.c
130 cpu-powerpc.c
131 cpu-rs6000.c
132 cpu-sh.c
133 cpu-sparc.c
134 cpu-tic30.c
135 cpu-v850.c
136 cpu-vax.c
137 cpu-w65.c
138 cpu-we32k.c
139 cpu-z8k.c
140 demo64.c
141 dep-in.sed
142 doc
143 dwarf1.c
144 dwarf2.c
145 ecoff.c
146 ecofflink.c
147 ecoffswap.h
148 elf-bfd.h
149 elf-m10200.c
150 elf-m10300.c
151 elf.c
152 elf32-arc.c
153 elf32-arm.c
154 elf32-d10v.c
155 elf32-d30v.c
156 elf32-fr30.c
157 elf32-gen.c
158 elf32-hppa.c
159 elf32-hppa.h
160 elf32-i386.c
161 elf32-i860.c
162 elf32-m32r.c
163 elf32-m68k.c
164 elf32-m88k.c
165 elf32-mips.c
166 elf32-ppc.c
167 elf32-sh.c
168 elf32-sparc.c
169 elf32-v850.c
170 elf32.c
171 elf64-alpha.c
172 elf64-gen.c
173 elf64-mips.c
174 elf64-sparc.c
175 elf64.c
176 elfcode.h
177 elfcore.h
178 elflink.c
179 elflink.h
180 elfxx-target.h
181 format.c
182 freebsd.h
183 gen-aout.c
184 genlink.h
185 go32stub.h
186 hash.c
187 host-aout.c
188 hosts
189 hp300bsd.c
190 hp300hpux.c
191 hppa_stubs.h
192 hppabsd-core.c
193 hpux-core.c
194 i386aout.c
195 i386bsd.c
196 i386dynix.c
197 i386freebsd.c
198 i386linux.c
199 i386lynx.c
200 i386mach3.c
201 i386msdos.c
202 i386netbsd.c
203 i386os9k.c
204 ieee.c
205 ihex.c
206 init.c
207 irix-core.c
208 libaout.h
209 libbfd-in.h
210 libbfd.c
211 libbfd.h
212 libcoff-in.h
213 libcoff.h
214 libecoff.h
215 libhppa.h
216 libieee.h
217 libnlm.h
218 liboasys.h
219 linker.c
220 lynx-core.c
221 m68k4knetbsd.c
222 m68klinux.c
223 m68klynx.c
224 m68knetbsd.c
225 m88kmach3.c
226 makefile.dos
227 makefile.vms
228 mipsbsd.c
229 mpw-config.in
230 mpw-make.sed
231 netbsd-core.c
232 netbsd.h
233 newsos3.c
234 nlm-target.h
235 nlm.c
236 nlm32-alpha.c
237 nlm32-i386.c
238 nlm32-ppc.c
239 nlm32-sparc.c
240 nlm32.c
241 nlm64.c
242 nlmcode.h
243 nlmswap.h
244 ns32k.h
245 ns32knetbsd.c
246 oasys.c
247 opncls.c
248 osf-core.c
249 pc532-mach.c
250 pe-arm.c
251 pe-i386.c
252 pe-ppc.c
253 pei-arm.c
254 pei-i386.c
255 pei-ppc.c
256 peicode.h
257 po
258 ppcboot.c
259 ptrace-core.c
260 reloc.c
261 reloc16.c
262 riscix.c
263 rs6000-core.c
264 sco5-core.c
265 section.c
266 som.c
267 som.h
268 sparclinux.c
269 sparclynx.c
270 sparcnetbsd.c
271 srec.c
272 stab-syms.c
273 stabs.c
274 stamp-h.in
275 sunos.c
276 syms.c
277 sysdep.h
278 targets.c
279 targmatch.sed
280 tekhex.c
281 trad-core.c
282 vaxnetbsd.c
283 versados.c
284 vms.c
285 vms.h
286 vms-gsd.c
287 vms-hdr.c
288 vms-misc.c
289 vms-tir.c
290 xcofflink.c
291
292 Things-to-lose:
293
294
295
296 # The lines between the "Do-last:" line and the end of the file
297 # are executed as a /bin/sh shell script after everything else is
298 # done.
299
300 Do-last:
301
302 am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
303 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
304 for i in $am33_files ; do
305 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Keeping am33 stuff in $i
308 fi
309 fi
310 done
311 else
312 for i in $am33_files ; do
313 if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
314 if [ -n "${verbose}" ] ; then
315 echo Removing traces of \"am33\" from $i...
316 fi
317 cp $i new
318 sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/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 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"
331 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
332 for i in $v850_files ; do
333 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
334 if [ -n "${verbose}" ] ; then
335 echo Keeping v850e stuff in $i
336 fi
337 fi
338 done
339 else
340 for i in $v850_files ; do
341 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
342 if [ -n "${verbose}" ] ; then
343 echo Removing traces of \"v850e\" from $i...
344 fi
345 cp $i new
346 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/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 r5900_files="ChangeLog ChangeLog-9697 config.bfd archures.c bfd-in2.h cpu-mips.c elf32-mips.c libbfd.h reloc.c"
359 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
360 for i in $r5900_files ; do
361 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
362 if [ -n "${verbose}" ] ; then
363 echo Keeping r5900 stuff in $i
364 fi
365 fi
366 done
367 else
368 for i in $r5900_files ; do
369 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
370 if [ -n "${verbose}" ] ; then
371 echo Removing traces of \"r5900\" from $i...
372 fi
373 cp $i new
374 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/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 tx19_files="archures.c bfd-in2.h cpu-mips.c"
387 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
388 for i in $tx19_files ; do
389 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
390 if [ -n "${verbose}" ] ; then
391 echo Keeping tx19 stuff in $i
392 fi
393 fi
394 done
395 else
396 for i in $tx19_files ; do
397 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
398 if [ -n "${verbose}" ] ; then
399 echo Removing traces of \"tx19\" from $i...
400 fi
401 cp $i new
402 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/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 tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
415 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
416 for i in $tx49_files ; do
417 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
418 if [ -n "${verbose}" ] ; then
419 echo Keeping tx49 stuff in $i
420 fi
421 fi
422 done
423 else
424 for i in $tx49_files ; do
425 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
426 if [ -n "${verbose}" ] ; then
427 echo Removing traces of \"tx49\" from $i...
428 fi
429 cp $i new
430 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/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 ChangeLog-9697 Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
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 cygnus_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
471 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
472 for i in $cygnus_files ; do
473 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
474 if [ -n "${verbose}" ] ; then
475 echo Keeping Cygnus stuff in $i
476 fi
477 fi
478 done
479 else
480 for i in $cygnus_files ; do
481 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
482 if [ -n "${verbose}" ] ; then
483 echo Removing traces of \"cygnus\" from $i...
484 fi
485 cp $i new
486 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/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 vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
499 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
500 for i in $vr4320_files ; do
501 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
502 if [ -n "${verbose}" ] ; then
503 echo Keeping vr4320 stuff in $i
504 fi
505 fi
506 done
507 else
508 for i in $vr4320_files ; do
509 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
510 if [ -n "${verbose}" ] ; then
511 echo Removing traces of \"vr4320\" from $i...
512 fi
513 cp $i new
514 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
515 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
516 if [ -n "${verbose}" ] ; then
517 echo Caching $i in .Recover...
518 fi
519 mv $i .Recover
520 fi
521 mv new $i
522 fi
523 done
524 fi
525
526 m32rx_files="ChangeLog ChangeLog-9697 archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
527 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
528 for i in $m32rx_files ; do
529 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
530 if [ -n "${verbose}" ] ; then
531 echo Keeping m32rx stuff in $i
532 fi
533 fi
534 done
535 else
536 for i in $m32rx_files ; do
537 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
538 if [ -n "${verbose}" ] ; then
539 echo Removing traces of \"m32rx\" from $i...
540 fi
541 cp $i new
542 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
543 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
544 if [ -n "${verbose}" ] ; then
545 echo Caching $i in .Recover...
546 fi
547 mv $i .Recover
548 fi
549 mv new $i
550 fi
551 done
552 fi
553
554 sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
555 if ( echo $* | grep keep\-sky > /dev/null ) ; then
556 for i in $sky_files ; do
557 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
558 if [ -n "${verbose}" ] ; then
559 echo Keeping sky stuff in $i
560 fi
561 fi
562 done
563 else
564 for i in $sky_files ; do
565 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
566 if [ -n "${verbose}" ] ; then
567 echo Removing traces of \"sky\" from $i...
568 fi
569 cp $i new
570 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
571 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
572 if [ -n "${verbose}" ] ; then
573 echo Caching $i in .Recover...
574 fi
575 mv $i .Recover
576 fi
577 mv new $i
578 fi
579 done
580 fi
581
582 beos_files="ChangeLog config.bfd"
583 if ( echo $* | grep keep\-beos > /dev/null ) ; then
584 for i in $beos_files ; do
585 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
586 if [ -n "${verbose}" ] ; then
587 echo Keeping beos stuff in $i
588 fi
589 fi
590 done
591 else
592 for i in $beos_files ; do
593 if test ! -d $i && (grep sanitize-beos $i > /dev/null) ; then
594 if [ -n "${verbose}" ] ; then
595 echo Removing traces of \"beos\" from $i...
596 fi
597 cp $i new
598 sed '/start\-sanitize\-beos/,/end-\sanitize\-beos/d' < $i > new
599 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
600 if [ -n "${verbose}" ] ; then
601 echo Caching $i in .Recover...
602 fi
603 mv $i .Recover
604 fi
605 mv new $i
606 fi
607 done
608 fi
609
610
611 for i in *; do
612 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
613 echo '***' Some mentions of Sanitize are still left in bfd/$i! 1>&2
614 fi
615 done
616
617 for lost in .. $lose_these_too; do
618 if test $lost != ..; then
619 for i in Makefile.am Makefile.in config.bfd configure.host configure.in configure; do
620 if fgrep $lost $i >/dev/null 2>&1; then
621 echo '***' File $lost was sanitized out but is still mentioned in bfd/$i 1>&2
622 fi
623 done
624 fi
625 done
626
627 # This must come after all other sanitizations. Re-sanitize the .pot
628 # file.
629 if [ -n "${verbose}" ]; then
630 echo Re-computing files for gettext ...
631 fi
632
633 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
634 if [ -n "${verbose}" ]; then
635 echo Caching po/POTFILES.in in .Recover...
636 fi
637 mv po/POTFILES.in po/.Recover
638 fi
639 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
640
641 if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
642 if [ -n "${verbose}" ]; then
643 echo Caching po/bfd.pot in .Recover...
644 fi
645 mv po/bfd.pot po/.Recover
646 fi
647 # If this fails, Sanitization must fail.
648 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
649
650 # eof
This page took 0.043241 seconds and 4 git commands to generate.