* mips-dis.c (print_insn_arg): Do not prefix 'P' arguments with '$'.
[deliverable/binutils-gdb.git] / bfd / .Sanitize
... / ...
CommitLineData
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
16Do-first:
17
18d30v_files="cpu-d30v.c elf32-d30v.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
26tic80_files="cpu-tic80.c coff-tic80.c"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
34# All files listed between the "Things-to-keep:" line and the
35# "Files-to-sed:" 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
40Things-to-keep:
41
42COPYING
43ChangeLog
44ChangeLog.1
45ChangeLog.2
46Makefile.am
47Makefile.in
48PORTING
49README
50TODO
51acconfig.h
52acinclude.m4
53aclocal.m4
54aix386-core.c
55aout-adobe.c
56aout-arm.c
57aout-encap.c
58aout-ns32k.c
59aout-sparcle.c
60aout-target.h
61aout-tic30.c
62aout0.c
63aout32.c
64aout64.c
65aoutf1.h
66aoutx.h
67archive.c
68archures.c
69bfd-in.h
70bfd-in2.h
71bfd.c
72binary.c
73bout.c
74cache.c
75cf-i386lynx.c
76cf-m68klynx.c
77cf-sparclynx.c
78cisco-core.c
79coff-a29k.c
80coff-alpha.c
81coff-apollo.c
82coff-arm.c
83coff-aux.c
84coff-go32.c
85coff-h8300.c
86coff-h8500.c
87coff-i386.c
88coff-i860.c
89coff-i960.c
90coff-m68k.c
91coff-m88k.c
92coff-mips.c
93coff-pmac.c
94coff-ppc.c
95coff-rs6000.c
96coff-sh.c
97coff-sparc.c
98coff-stgo32.c
99coff-svm68k.c
100coff-tic30.c
101coff-u68k.c
102coff-we32k.c
103coff-w65.c
104coff-z8k.c
105coffcode.h
106coffgen.c
107cofflink.c
108coffswap.h
109config.bfd
110config.in
111configure
112configure.bat
113configure.com
114configure.host
115configure.in
116corefile.c
117cpu-a29k.c
118cpu-alpha.c
119cpu-arc.c
120cpu-arm.c
121cpu-d10v.c
122cpu-h8300.c
123cpu-h8500.c
124cpu-hppa.c
125cpu-i386.c
126cpu-i860.c
127cpu-i960.c
128cpu-m32r.c
129cpu-m68k.c
130cpu-m88k.c
131cpu-mips.c
132cpu-m10200.c
133cpu-m10300.c
134cpu-ns32k.c
135cpu-powerpc.c
136cpu-rs6000.c
137cpu-sh.c
138cpu-sparc.c
139cpu-tic30.c
140cpu-v850.c
141cpu-vax.c
142cpu-we32k.c
143cpu-w65.c
144cpu-z8k.c
145demo64.c
146dep-in.sed
147doc
148dwarf2.c
149ecoff.c
150ecofflink.c
151ecoffswap.h
152elf-bfd.h
153elf.c
154elf32-arc.c
155elf32-d10v.c
156elf32-gen.c
157elf32-hppa.c
158elf32-hppa.h
159elf32-i386.c
160elf32-i860.c
161elf32-m32r.c
162elf32-m68k.c
163elf32-m88k.c
164elf32-mips.c
165elf-m10200.c
166elf-m10300.c
167elf32-ppc.c
168elf32-sh.c
169elf32-sparc.c
170elf32-v850.c
171elf32.c
172elf64-alpha.c
173elf64-gen.c
174elf64-mips.c
175elf64-sparc.c
176elf64.c
177elfxx-target.h
178elfcode.h
179elfcore.h
180elflink.c
181elflink.h
182evax.h
183evax-alpha.c
184evax-egsd.c
185evax-emh.c
186evax-etir.c
187evax-misc.c
188filemode.c
189format.c
190freebsd.h
191gen-aout.c
192genlink.h
193go32stub.h
194hash.c
195host-aout.c
196hosts
197hp300bsd.c
198hp300hpux.c
199hppa_stubs.h
200hppabsd-core.c
201hpux-core.c
202i386aout.c
203i386bsd.c
204i386dynix.c
205i386freebsd.c
206i386linux.c
207i386netbsd.c
208i386lynx.c
209i386mach3.c
210i386msdos.c
211i386os9k.c
212ieee.c
213ihex.c
214init.c
215irix-core.c
216libaout.h
217libbfd-in.h
218libbfd.c
219libbfd.h
220libcoff-in.h
221libcoff.h
222libecoff.h
223libhppa.h
224libieee.h
225libnlm.h
226liboasys.h
227linker.c
228lynx-core.c
229m68k4knetbsd.c
230m68klinux.c
231m68klynx.c
232m68knetbsd.c
233m88kmach3.c
234makefile.dos
235makefile.vms
236mipsbsd.c
237mpw-config.in
238mpw-make.sed
239newsos3.c
240netbsd-core.c
241netbsd.h
242nlm-target.h
243nlm.c
244nlm32-alpha.c
245nlm32-i386.c
246nlm32-ppc.c
247nlm32-sparc.c
248nlm32.c
249nlm64.c
250nlmcode.h
251nlmswap.h
252ns32k.h
253ns32knetbsd.c
254oasys.c
255opncls.c
256osf-core.c
257pc532-mach.c
258pe-arm.c
259pe-i386.c
260pe-ppc.c
261pei-arm.c
262pei-i386.c
263pei-ppc.c
264peicode.h
265ppcboot.c
266ptrace-core.c
267reloc.c
268reloc16.c
269riscix.c
270rs6000-core.c
271section.c
272som.c
273som.h
274sparclinux.c
275sparclynx.c
276sparcnetbsd.c
277srec.c
278stabs.c
279stab-syms.c
280stamp-h.in
281sunos.c
282syms.c
283sysdep.h
284targets.c
285targmatch.sed
286tekhex.c
287trad-core.c
288vaxnetbsd.c
289versados.c
290xcofflink.c
291
292Things-to-lose:
293
294
295Do-last:
296
297d30v_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"
298if ( echo $* | grep keep\-d30v > /dev/null ) ; then
299 for i in $d30v_files ; do
300 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
301 if [ -n "${verbose}" ] ; then
302 echo Keeping d30v stuff in $i
303 fi
304 fi
305 done
306else
307 for i in $d30v_files ; do
308 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
309 if [ -n "${verbose}" ] ; then
310 echo Removing traces of \"d30v\" from $i...
311 fi
312 cp $i new
313 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
323fi
324
325v850_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"
326if ( 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
334else
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
351fi
352
353r5900_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-mips.c"
354if ( 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
362else
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
379fi
380
381tx19_files="archures.c bfd-in2.h cpu-mips.c"
382if ( 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
390else
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
407fi
408
409tx49_files="archures.c bfd-in2.h cpu-mips.c"
410if ( 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
418else
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
435fi
436
437sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c"
438if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
439 for i in $sh4_files ; do
440 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
441 if [ -n "${verbose}" ] ; then
442 echo Keeping sh4 stuff in $i
443 fi
444 fi
445 done
446else
447 for i in $sh4_files ; do
448 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
449 if [ -n "${verbose}" ] ; then
450 echo Removing traces of \"sh4\" from $i...
451 fi
452 cp $i new
453 sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/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
463fi
464
465tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
466if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
467 for i in $tic80_files ; do
468 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
469 if [ -n "${verbose}" ] ; then
470 echo Keeping tic80 stuff in $i
471 fi
472 fi
473 done
474else
475 for i in $tic80_files ; do
476 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
477 if [ -n "${verbose}" ] ; then
478 echo Removing traces of \"tic80\" from $i...
479 fi
480 cp $i new
481 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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
491fi
492
493gm_files="ChangeLog ChangeLog.2 config.bfd"
494if ( echo $* | grep keep\-gm > /dev/null ) ; then
495 for i in $gm_files ; do
496 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
497 if [ -n "${verbose}" ] ; then
498 echo Keeping gm stuff in $i
499 fi
500 fi
501 done
502else
503 for i in $gm_files ; do
504 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
505 if [ -n "${verbose}" ] ; then
506 echo Removing traces of \"gm\" from $i...
507 fi
508 cp $i new
509 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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
519fi
520
521vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c"
522if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
523 for i in $vr5400_files ; do
524 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
525 if [ -n "${verbose}" ] ; then
526 echo Keeping vr5400 stuff in $i
527 fi
528 fi
529 done
530else
531 for i in $vr5400_files ; do
532 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
533 if [ -n "${verbose}" ] ; then
534 echo Removing traces of \"vr5400\" from $i...
535 fi
536 cp $i new
537 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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
547fi
548
549m32rx_files="ChangeLog archures.c bfd-in2.h elf32-m32r.c cpu-m32r.c"
550if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
551 for i in $m32rx_files ; do
552 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
553 if [ -n "${verbose}" ] ; then
554 echo Keeping m32rx stuff in $i
555 fi
556 fi
557 done
558else
559 for i in $m32rx_files ; do
560 if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
561 if [ -n "${verbose}" ] ; then
562 echo Removing traces of \"m32rx\" from $i...
563 fi
564 cp $i new
565 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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
575fi
576
577sky_files="ChangeLog archures.c elf32-mips.c reloc.c cpu-mips.c config.bfd configure.in configure bfd-in2.h libbfd.h"
578if ( echo $* | grep keep\-sky > /dev/null ) ; then
579 for i in $sky_files ; do
580 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
581 if [ -n "${verbose}" ] ; then
582 echo Keeping sky stuff in $i
583 fi
584 fi
585 done
586else
587 for i in $sky_files ; do
588 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
589 if [ -n "${verbose}" ] ; then
590 echo Removing traces of \"sky\" from $i...
591 fi
592 cp $i new
593 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/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
603fi
604
605for 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
609done
610
611# End of file.
This page took 0.023646 seconds and 4 git commands to generate.