5635fc503dec35659e11cc822e351db18b3532b1
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # Sanitize.in for devo/bfd.
2
3 # Each directory to survive it's 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
15
16 Do-first:
17
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25 COPYING
26 PORTING
27 doc
28 ChangeLog
29 Makefile.dos
30 Makefile.in
31 TODO
32 VERSION
33 aout32.c
34 aout64.c
35 aoutf1.h
36 aoutx.h
37 aout-encap.c
38 aout-target.h
39 archive.c
40 archures.c
41 bfd-in.h
42 bfd.c
43 bout.c
44 cache.c
45 ctor.c
46 coff-a29k.c
47 coff-h8300.c
48 coff-i386.c
49 coff-i960.c
50 coff-m68k.c
51 coff-m88k.c
52 coff-mips.c
53 coff-msym.c
54 coff-rs6000.c
55 coff-we32k.c
56 coff-z8k.c
57 coffcode.h
58 config
59 configure.bat
60 configure.in
61 core.c
62 demo64.c
63 elf.c
64 filemode.c
65 format.c
66 gen-aout.c
67 host-aout.c
68 hosts
69 hppa.c
70 i386aout.c
71 i386linux.c
72 ieee.c
73 libaout.h
74 libbfd-in.h
75 cpu-a29k.c
76 cpu-i386.c
77 cpu-m68k.c
78 cpu-mips.c
79 cpu-vax.c
80 cpu-h8300.c
81 cpu-hppa.c
82 cpu-i960.c
83 cpu-m88k.c
84 cpu-rs6000.c
85 cpu-we32k.c
86 cpu-z8k.c
87 hp300bsd.c
88 init.c
89 cpu-sparc.c
90 libbfd.c
91 libbfd.h
92 libcoff-in.h
93 libcoff.h
94 libhppa.h
95 libieee.h
96 liboasys.h
97 newsos3.c
98 oasys.c
99 opc-sparc.c
100 opncls.c
101 reloc.c
102 rs6000-core.c
103 sco-core.c
104 scripts
105 seclet.c
106 seclet.h
107 section.c
108 srec.c
109 stab-syms.c
110 sunos.c
111 syms.c
112 targets.c
113 tekhex.c
114 trad-core.c
115 trad-core.h
116
117 Do-last:
118
119 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
120 echo Keeping v9 in aoutx.h opc-sparc.c
121 else
122 echo Sanitizing v9 in aoutx.h
123 rm -f new
124 while grep -s start-sanitize-v9 aoutx.h ; do
125 sed -e '/start-sanitize-v9/,/end-sanitize-v9/d' <aoutx.h >new
126 if [ -n "${safe}" ] ; then
127 mv aoutx.h .Recover
128 else
129 rm aoutx.h
130 fi
131 mv new aoutx.h
132 done
133 echo Sanitizing v9 in opc-sparc.c
134 rm -f new
135 grep -v v9 opc-sparc.c > new
136 if [ -n "${safe}" ] ; then
137 mv opc-sparc.c .Recover
138 else
139 rm opc-sparc.c
140 fi
141 mv new opc-sparc.c
142 fi
143
144 echo Done in `pwd`.
145
146 # End of file.
This page took 0.03316 seconds and 4 git commands to generate.