* Handle 10 and 20-bit versions of Break instruction. Move handling
[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 # All files listed between the "Things-to-keep:" line and the
35 # "Do-last:" line will be kept. All other files will be removed.
36 # Directories listed in this section will have their own Sanitize
37 # called. Directories not listed will be removed in their entirety
38 # with rm -rf.
39
40 Things-to-keep:
41
42 COPYING
43 ChangeLog
44 ChangeLog.1
45 ChangeLog.2
46 Makefile.am
47 Makefile.in
48 PORTING
49 README
50 TODO
51 acconfig.h
52 acinclude.m4
53 aclocal.m4
54 aix386-core.c
55 aout-adobe.c
56 aout-arm.c
57 aout-encap.c
58 aout-ns32k.c
59 aout-sparcle.c
60 aout-target.h
61 aout-tic30.c
62 aout0.c
63 aout32.c
64 aout64.c
65 aoutf1.h
66 aoutx.h
67 archive.c
68 archures.c
69 bfd-in.h
70 bfd-in2.h
71 bfd.c
72 binary.c
73 bout.c
74 cache.c
75 cf-i386lynx.c
76 cf-m68klynx.c
77 cf-sparclynx.c
78 cisco-core.c
79 coff-a29k.c
80 coff-alpha.c
81 coff-apollo.c
82 coff-arm.c
83 coff-aux.c
84 coff-go32.c
85 coff-h8300.c
86 coff-h8500.c
87 coff-i386.c
88 coff-i860.c
89 coff-i960.c
90 coff-m68k.c
91 coff-m88k.c
92 coff-mips.c
93 coff-pmac.c
94 coff-ppc.c
95 coff-rs6000.c
96 coff-sh.c
97 coff-sparc.c
98 coff-stgo32.c
99 coff-svm68k.c
100 coff-tic30.c
101 coff-u68k.c
102 coff-w65.c
103 coff-we32k.c
104 coff-z8k.c
105 coffcode.h
106 coffgen.c
107 cofflink.c
108 coffswap.h
109 config.bfd
110 config.in
111 configure
112 configure.bat
113 configure.com
114 configure.host
115 configure.in
116 corefile.c
117 cpu-a29k.c
118 cpu-alpha.c
119 cpu-arc.c
120 cpu-arm.c
121 cpu-d10v.c
122 cpu-h8300.c
123 cpu-h8500.c
124 cpu-hppa.c
125 cpu-i386.c
126 cpu-i860.c
127 cpu-i960.c
128 cpu-m10200.c
129 cpu-m10300.c
130 cpu-m32r.c
131 cpu-m68k.c
132 cpu-m88k.c
133 cpu-mips.c
134 cpu-ns32k.c
135 cpu-powerpc.c
136 cpu-rs6000.c
137 cpu-sh.c
138 cpu-sparc.c
139 cpu-tic30.c
140 cpu-v850.c
141 cpu-vax.c
142 cpu-w65.c
143 cpu-we32k.c
144 cpu-z8k.c
145 demo64.c
146 dep-in.sed
147 doc
148 dwarf2.c
149 ecoff.c
150 ecofflink.c
151 ecoffswap.h
152 elf-bfd.h
153 elf-m10200.c
154 elf-m10300.c
155 elf.c
156 elf32-arc.c
157 elf32-d10v.c
158 elf32-gen.c
159 elf32-hppa.c
160 elf32-hppa.h
161 elf32-i386.c
162 elf32-i860.c
163 elf32-m32r.c
164 elf32-m68k.c
165 elf32-m88k.c
166 elf32-mips.c
167 elf32-ppc.c
168 elf32-sh.c
169 elf32-sparc.c
170 elf32-v850.c
171 elf32.c
172 elf64-alpha.c
173 elf64-gen.c
174 elf64-mips.c
175 elf64-sparc.c
176 elf64.c
177 elfcode.h
178 elfcore.h
179 elflink.c
180 elflink.h
181 elfxx-target.h
182 evax-alpha.c
183 evax-egsd.c
184 evax-emh.c
185 evax-etir.c
186 evax-misc.c
187 evax.h
188 format.c
189 freebsd.h
190 gen-aout.c
191 genlink.h
192 go32stub.h
193 hash.c
194 host-aout.c
195 hosts
196 hp300bsd.c
197 hp300hpux.c
198 hppa_stubs.h
199 hppabsd-core.c
200 hpux-core.c
201 i386aout.c
202 i386bsd.c
203 i386dynix.c
204 i386freebsd.c
205 i386linux.c
206 i386lynx.c
207 i386mach3.c
208 i386msdos.c
209 i386netbsd.c
210 i386os9k.c
211 ieee.c
212 ihex.c
213 init.c
214 irix-core.c
215 libaout.h
216 libbfd-in.h
217 libbfd.c
218 libbfd.h
219 libcoff-in.h
220 libcoff.h
221 libecoff.h
222 libhppa.h
223 libieee.h
224 libnlm.h
225 liboasys.h
226 linker.c
227 lynx-core.c
228 m68k4knetbsd.c
229 m68klinux.c
230 m68klynx.c
231 m68knetbsd.c
232 m88kmach3.c
233 makefile.dos
234 makefile.vms
235 mipsbsd.c
236 mpw-config.in
237 mpw-make.sed
238 netbsd-core.c
239 netbsd.h
240 newsos3.c
241 nlm-target.h
242 nlm.c
243 nlm32-alpha.c
244 nlm32-i386.c
245 nlm32-ppc.c
246 nlm32-sparc.c
247 nlm32.c
248 nlm64.c
249 nlmcode.h
250 nlmswap.h
251 ns32k.h
252 ns32knetbsd.c
253 oasys.c
254 opncls.c
255 osf-core.c
256 pc532-mach.c
257 pe-arm.c
258 pe-i386.c
259 pe-ppc.c
260 pei-arm.c
261 pei-i386.c
262 pei-ppc.c
263 peicode.h
264 po
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 sparclinux.c
275 sparclynx.c
276 sparcnetbsd.c
277 srec.c
278 stab-syms.c
279 stabs.c
280 stamp-h.in
281 sunos.c
282 syms.c
283 sysdep.h
284 targets.c
285 targmatch.sed
286 tekhex.c
287 trad-core.c
288 vaxnetbsd.c
289 versados.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 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"
303 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
304 for i in $d30v_files ; do
305 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
306 if [ -n "${verbose}" ] ; then
307 echo Keeping d30v stuff in $i
308 fi
309 fi
310 done
311 else
312 for i in $d30v_files ; do
313 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
314 if [ -n "${verbose}" ] ; then
315 echo Removing traces of \"d30v\" from $i...
316 fi
317 cp $i new
318 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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 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 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 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 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 vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
499 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
500 for i in $vr5400_files ; do
501 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
502 if [ -n "${verbose}" ] ; then
503 echo Keeping vr5400 stuff in $i
504 fi
505 fi
506 done
507 else
508 for i in $vr5400_files ; do
509 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
510 if [ -n "${verbose}" ] ; then
511 echo Removing traces of \"vr5400\" from $i...
512 fi
513 cp $i new
514 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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 vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
527 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
528 for i in $vr4320_files ; do
529 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
530 if [ -n "${verbose}" ] ; then
531 echo Keeping vr4320 stuff in $i
532 fi
533 fi
534 done
535 else
536 for i in $vr4320_files ; do
537 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
538 if [ -n "${verbose}" ] ; then
539 echo Removing traces of \"vr4320\" from $i...
540 fi
541 cp $i new
542 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/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 m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
555 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
556 for i in $m32rx_files ; do
557 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
558 if [ -n "${verbose}" ] ; then
559 echo Keeping m32rx stuff in $i
560 fi
561 fi
562 done
563 else
564 for i in $m32rx_files ; do
565 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
566 if [ -n "${verbose}" ] ; then
567 echo Removing traces of \"m32rx\" from $i...
568 fi
569 cp $i new
570 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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 sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
583 if ( echo $* | grep keep\-sky > /dev/null ) ; then
584 for i in $sky_files ; do
585 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
586 if [ -n "${verbose}" ] ; then
587 echo Keeping sky stuff in $i
588 fi
589 fi
590 done
591 else
592 for i in $sky_files ; do
593 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
594 if [ -n "${verbose}" ] ; then
595 echo Removing traces of \"sky\" from $i...
596 fi
597 cp $i new
598 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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 for i in * ; do
611 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
612 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
613 fi
614 done
615
616
617 # This must come after all other sanitizations. Re-sanitize the .pot
618 # file.
619 if [ -n "${verbose}" ]; then
620 echo Re-computing files for gettext ...
621 fi
622
623 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
624 if [ -n "${verbose}" ]; then
625 echo Caching po/POTFILES.in in .Recover...
626 fi
627 mv po/POTFILES.in po/.Recover
628 fi
629 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
630
631 if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
632 if [ -n "${verbose}" ]; then
633 echo Caching po/bfd.pot in .Recover...
634 fi
635 mv po/bfd.pot po/.Recover
636 fi
637 # If this fails, Sanitization must fail.
638 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
639
640 # eof
This page took 0.042393 seconds and 4 git commands to generate.