Commit | Line | Data |
---|---|---|
4f5d16c7 | 1 | # .Sanitize for devo/gas/config |
0fd8d5d9 | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
0fd8d5d9 RP |
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 | ||
833c46e1 | 18 | arc_files="tc-arc.c tc-arc.h" |
bc70eba5 DE |
19 | |
20 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
21 | keep_these_too="${arc_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${arc_files} ${lose_these_too}" | |
24 | fi | |
25 | ||
9b1168d6 MH |
26 | d30v_files="tc-d30v.c tc-d30v.h" |
27 | ||
28 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
29 | keep_these_too="${d30v_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${d30v_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
c6aa56bc C |
34 | v850_files="tc-v850.c tc-v850.h" |
35 | ||
36 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then | |
37 | keep_these_too="${v850_files} ${keep_these_too}" | |
38 | else | |
32e23ecd NC |
39 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
40 | keep_these_too="${v850_files} ${keep_these_too}" | |
41 | else | |
42 | if ( echo $* | grep keep\-v850eq > /dev/null ) ; then | |
43 | keep_these_too="${v850_files} ${keep_these_too}" | |
44 | else | |
c6aa56bc | 45 | lose_these_too="${v850_files} ${lose_these_too}" |
32e23ecd NC |
46 | fi |
47 | fi | |
c6aa56bc C |
48 | fi |
49 | ||
64556643 FF |
50 | tic80_files="tc-tic80.c tc-tic80.h" |
51 | ||
52 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
53 | keep_these_too="${tic80_files} ${keep_these_too}" | |
54 | else | |
55 | lose_these_too="${tic80_files} ${lose_these_too}" | |
56 | fi | |
c6aa56bc | 57 | |
0fd8d5d9 RP |
58 | # All files listed between the "Things-to-keep:" line and the |
59 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
60 | # Directories listed in this section will have their own Sanitize | |
61 | # called. Directories not listed will be removed in their entirety | |
62 | # with rm -rf. | |
63 | ||
64 | Things-to-keep: | |
65 | ||
3e6e09c0 | 66 | aout_gnu.h |
0fd8d5d9 | 67 | atof-ieee.c |
b41390d2 | 68 | atof-tahoe.c |
0fd8d5d9 | 69 | atof-vax.c |
cd8aca19 | 70 | go32.cfg |
034988c6 ILT |
71 | e-i386coff.c |
72 | e-i386elf.c | |
511cd41c KR |
73 | e-mipsecoff.c |
74 | e-mipself.c | |
8e5c905e | 75 | itbl-mips.h |
a1c7c0f3 ILT |
76 | m68k-parse.h |
77 | m68k-parse.y | |
cd625bf3 | 78 | m88k-opcode.h |
0fd8d5d9 RP |
79 | obj-aout.c |
80 | obj-aout.h | |
0fd8d5d9 RP |
81 | obj-bout.c |
82 | obj-bout.h | |
83 | obj-coff.c | |
84 | obj-coff.h | |
e99f6f9c ILT |
85 | obj-ecoff.c |
86 | obj-ecoff.h | |
a4099f78 KR |
87 | obj-elf.c |
88 | obj-elf.h | |
f649d525 ILT |
89 | obj-evax.c |
90 | obj-evax.h | |
0fd8d5d9 RP |
91 | obj-generic.c |
92 | obj-generic.h | |
daae8c92 KR |
93 | obj-hp300.c |
94 | obj-hp300.h | |
fd345c9c SC |
95 | obj-ieee.c |
96 | obj-ieee.h | |
511cd41c KR |
97 | obj-multi.c |
98 | obj-multi.h | |
0fa747c4 JL |
99 | obj-som.c |
100 | obj-som.h | |
b41390d2 KR |
101 | obj-vms.c |
102 | obj-vms.h | |
0fd8d5d9 RP |
103 | tc-a29k.c |
104 | tc-a29k.h | |
5749c497 KR |
105 | tc-alpha.c |
106 | tc-alpha.h | |
6c3bc2b8 KR |
107 | tc-arm.c |
108 | tc-arm.h | |
8a683c67 ILT |
109 | tc-d10v.c |
110 | tc-d10v.h | |
0fd8d5d9 RP |
111 | tc-generic.c |
112 | tc-generic.h | |
fd345c9c SC |
113 | tc-h8300.c |
114 | tc-h8300.h | |
033400ec SC |
115 | tc-h8500.c |
116 | tc-h8500.h | |
daae8c92 KR |
117 | tc-hppa.c |
118 | tc-hppa.h | |
0fd8d5d9 RP |
119 | tc-i386.c |
120 | tc-i386.h | |
121 | tc-i860.c | |
122 | tc-i860.h | |
123 | tc-i960.c | |
124 | tc-i960.h | |
9f719a56 DE |
125 | tc-m32r.c |
126 | tc-m32r.h | |
0fd8d5d9 RP |
127 | tc-m68851.h |
128 | tc-m68k.c | |
129 | tc-m68k.h | |
cd625bf3 DHW |
130 | tc-m88k.c |
131 | tc-m88k.h | |
fd345c9c SC |
132 | tc-mips.c |
133 | tc-mips.h | |
ae1b99e4 JL |
134 | tc-mn10200.c |
135 | tc-mn10200.h | |
136 | tc-mn10300.c | |
137 | tc-mn10300.h | |
0fd8d5d9 RP |
138 | tc-ns32k.c |
139 | tc-ns32k.h | |
af46c203 ILT |
140 | tc-ppc.c |
141 | tc-ppc.h | |
4a1bbbe7 SC |
142 | tc-sh.c |
143 | tc-sh.h | |
6690d829 | 144 | tc-sparc.c |
920babce | 145 | tc-sparc.h |
af3b5ad2 KR |
146 | tc-tahoe.c |
147 | tc-tahoe.h | |
0fd8d5d9 RP |
148 | tc-vax.c |
149 | tc-vax.h | |
b3235d56 SC |
150 | tc-w65.c |
151 | tc-w65.h | |
163107a1 SC |
152 | tc-z8k.c |
153 | tc-z8k.h | |
daae8c92 | 154 | te-386bsd.h |
66b935da | 155 | te-aux.h |
757d4129 | 156 | te-delta.h |
880b7429 | 157 | te-delt88.h |
0fd8d5d9 | 158 | te-dpx2.h |
f5ed78de | 159 | te-dynix.h |
0fd8d5d9 | 160 | te-generic.h |
cd8aca19 | 161 | te-go32.h |
daae8c92 KR |
162 | te-hp300.h |
163 | te-hppa.h | |
cd625bf3 | 164 | te-i386aix.h |
0fd8d5d9 | 165 | te-ic960.h |
daae8c92 | 166 | te-linux.h |
d3ecee39 | 167 | te-lnews.h |
d0c25cae | 168 | te-lynx.h |
5efa30fa | 169 | te-mach.h |
75d1d87a | 170 | te-macos.h |
511cd41c | 171 | te-multi.h |
04050d57 | 172 | te-nbsd.h |
d5a0eeac | 173 | te-nbsd532.h |
f68880ea | 174 | te-pc532mach.h |
b04b02a5 | 175 | te-pe.h |
cd8aca19 | 176 | te-ppcnw.h |
8a6f53e9 | 177 | te-psos.h |
69c1de90 | 178 | te-riscix.h |
df4021c1 | 179 | te-sparcaout.h |
0fd8d5d9 | 180 | te-sun3.h |
fee3e248 | 181 | te-svr4.h |
920babce | 182 | te-sysv32.h |
0fd8d5d9 | 183 | vax-inst.h |
ba466c4c | 184 | vms-conf.h |
f649d525 | 185 | vms-a-conf.h |
0fd8d5d9 | 186 | |
87756e15 RP |
187 | Things-to-lose: |
188 | ||
0fd8d5d9 RP |
189 | Do-last: |
190 | ||
276c2d7d GRK |
191 | r5900_files="tc-mips.c" |
192 | ||
193 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then | |
194 | for i in $r5900_files ; do | |
195 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
196 | if [ -n "${verbose}" ] ; then | |
197 | echo Keeping r5900 stuff in $i | |
198 | fi | |
199 | fi | |
200 | done | |
201 | else | |
202 | for i in * ; do | |
203 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
204 | if [ -n "${verbose}" ] ; then | |
205 | echo Removing traces of \"r5900\" from $i... | |
206 | fi | |
207 | cp $i new | |
32e23ecd | 208 | sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new |
276c2d7d GRK |
209 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
210 | if [ -n "${verbose}" ] ; then | |
211 | echo Caching $i in .Recover... | |
212 | fi | |
213 | mv $i .Recover | |
214 | fi | |
215 | mv new $i | |
216 | fi | |
217 | done | |
218 | fi | |
219 | ||
54d5e0fb AMT |
220 | tic80_files="obj-coff.h" |
221 | ||
222 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
223 | for i in $tic80_files ; do | |
224 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
225 | if [ -n "${verbose}" ] ; then | |
226 | echo Keeping tic80 stuff in $i | |
227 | fi | |
228 | fi | |
229 | done | |
230 | else | |
231 | for i in * ; do | |
232 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
233 | if [ -n "${verbose}" ] ; then | |
234 | echo Removing traces of \"tic80\" from $i... | |
235 | fi | |
236 | cp $i new | |
32e23ecd | 237 | sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new |
54d5e0fb AMT |
238 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
239 | if [ -n "${verbose}" ] ; then | |
240 | echo Caching $i in .Recover... | |
241 | fi | |
242 | mv $i .Recover | |
243 | fi | |
244 | mv new $i | |
245 | fi | |
246 | done | |
247 | fi | |
248 | ||
32e23ecd NC |
249 | v850e_files="tc-v850.c tc-v850.h" |
250 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then | |
251 | for i in $v850e_files ; do | |
252 | if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then | |
253 | if [ -n "${verbose}" ] ; then | |
254 | echo Removing traces of \"v850eq\" from $i... | |
255 | fi | |
256 | cp $i new | |
257 | sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new | |
258 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
259 | if [ -n "${verbose}" ] ; then | |
260 | echo Caching $i in .Recover... | |
261 | fi | |
262 | mv $i .Recover | |
263 | fi | |
264 | mv new $i | |
265 | fi | |
266 | done | |
267 | else | |
268 | if ( echo $* | grep keep\-v850eq > /dev/null ) ; then | |
269 | for i in $v850e_files ; do | |
270 | if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then | |
271 | if [ -n "${verbose}" ] ; then | |
272 | echo Keeping v850e and v850eq stuff in $i | |
273 | fi | |
274 | fi | |
275 | done | |
276 | else | |
277 | for i in $v850e_files ; do | |
278 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
279 | if [ -n "${verbose}" ] ; then | |
280 | echo Removing traces of \"v850e\" from $i... | |
281 | fi | |
282 | cp $i new | |
283 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new | |
284 | cp new newer | |
285 | sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < new > newer | |
286 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
287 | if [ -n "${verbose}" ] ; then | |
288 | echo Caching $i in .Recover... | |
289 | fi | |
290 | mv $i .Recover | |
291 | fi | |
292 | mv newer $i | |
293 | rm new | |
294 | fi | |
295 | done | |
296 | fi | |
297 | fi | |
276c2d7d | 298 | |
0fd8d5d9 | 299 | # End of file. |