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 | |
e33bfde7 | 14 | # done in this directory. |
0fd8d5d9 RP |
15 | |
16 | Do-first: | |
17 | ||
6438209c KR |
18 | if [ -d vms ]; then |
19 | lose_these_too="vms ${lose_these_too}" | |
20 | fi | |
21 | ||
64556643 FF |
22 | tic80_files="tc-tic80.c tc-tic80.h" |
23 | ||
24 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
25 | keep_these_too="${tic80_files} ${keep_these_too}" | |
26 | else | |
27 | lose_these_too="${tic80_files} ${lose_these_too}" | |
28 | fi | |
c6aa56bc | 29 | |
276dd6ef | 30 | sky_files="tc-dvp.c tc-dvp.h" |
209fb346 DE |
31 | |
32 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
33 | keep_these_too="${sky_files} ${keep_these_too}" | |
34 | else | |
35 | lose_these_too="${sky_files} ${lose_these_too}" | |
36 | fi | |
37 | ||
0fd8d5d9 | 38 | # All files listed between the "Things-to-keep:" line and the |
e33bfde7 | 39 | # "Do-last:" line will be kept. All other files will be removed. |
0fd8d5d9 RP |
40 | # Directories listed in this section will have their own Sanitize |
41 | # called. Directories not listed will be removed in their entirety | |
42 | # with rm -rf. | |
43 | ||
44 | Things-to-keep: | |
45 | ||
3e6e09c0 | 46 | aout_gnu.h |
0fd8d5d9 | 47 | atof-ieee.c |
b41390d2 | 48 | atof-tahoe.c |
0fd8d5d9 | 49 | atof-vax.c |
034988c6 ILT |
50 | e-i386coff.c |
51 | e-i386elf.c | |
511cd41c KR |
52 | e-mipsecoff.c |
53 | e-mipself.c | |
e33bfde7 | 54 | go32.cfg |
8e5c905e | 55 | itbl-mips.h |
a1c7c0f3 ILT |
56 | m68k-parse.h |
57 | m68k-parse.y | |
cd625bf3 | 58 | m88k-opcode.h |
0fd8d5d9 RP |
59 | obj-aout.c |
60 | obj-aout.h | |
0fd8d5d9 RP |
61 | obj-bout.c |
62 | obj-bout.h | |
63 | obj-coff.c | |
64 | obj-coff.h | |
e99f6f9c ILT |
65 | obj-ecoff.c |
66 | obj-ecoff.h | |
a4099f78 KR |
67 | obj-elf.c |
68 | obj-elf.h | |
f649d525 ILT |
69 | obj-evax.c |
70 | obj-evax.h | |
0fd8d5d9 RP |
71 | obj-generic.c |
72 | obj-generic.h | |
daae8c92 KR |
73 | obj-hp300.c |
74 | obj-hp300.h | |
fd345c9c SC |
75 | obj-ieee.c |
76 | obj-ieee.h | |
511cd41c KR |
77 | obj-multi.c |
78 | obj-multi.h | |
0fa747c4 JL |
79 | obj-som.c |
80 | obj-som.h | |
b41390d2 KR |
81 | obj-vms.c |
82 | obj-vms.h | |
0fd8d5d9 RP |
83 | tc-a29k.c |
84 | tc-a29k.h | |
5749c497 KR |
85 | tc-alpha.c |
86 | tc-alpha.h | |
bdb836d1 DE |
87 | tc-arc.c |
88 | tc-arc.h | |
6c3bc2b8 KR |
89 | tc-arm.c |
90 | tc-arm.h | |
8a683c67 ILT |
91 | tc-d10v.c |
92 | tc-d10v.h | |
cc88a106 ILT |
93 | tc-d30v.c |
94 | tc-d30v.h | |
3a794236 DE |
95 | tc-fr30.c |
96 | tc-fr30.h | |
0fd8d5d9 RP |
97 | tc-generic.c |
98 | tc-generic.h | |
fd345c9c SC |
99 | tc-h8300.c |
100 | tc-h8300.h | |
033400ec SC |
101 | tc-h8500.c |
102 | tc-h8500.h | |
daae8c92 KR |
103 | tc-hppa.c |
104 | tc-hppa.h | |
0fd8d5d9 RP |
105 | tc-i386.c |
106 | tc-i386.h | |
107 | tc-i860.c | |
108 | tc-i860.h | |
109 | tc-i960.c | |
110 | tc-i960.h | |
9f719a56 DE |
111 | tc-m32r.c |
112 | tc-m32r.h | |
0fd8d5d9 RP |
113 | tc-m68851.h |
114 | tc-m68k.c | |
115 | tc-m68k.h | |
cd625bf3 DHW |
116 | tc-m88k.c |
117 | tc-m88k.h | |
fd345c9c SC |
118 | tc-mips.c |
119 | tc-mips.h | |
ae1b99e4 JL |
120 | tc-mn10200.c |
121 | tc-mn10200.h | |
122 | tc-mn10300.c | |
123 | tc-mn10300.h | |
0fd8d5d9 RP |
124 | tc-ns32k.c |
125 | tc-ns32k.h | |
af46c203 ILT |
126 | tc-ppc.c |
127 | tc-ppc.h | |
4a1bbbe7 SC |
128 | tc-sh.c |
129 | tc-sh.h | |
6690d829 | 130 | tc-sparc.c |
920babce | 131 | tc-sparc.h |
af3b5ad2 KR |
132 | tc-tahoe.c |
133 | tc-tahoe.h | |
0e034c77 ILT |
134 | tc-tic30.c |
135 | tc-tic30.h | |
8f3c5ddb NC |
136 | tc-v850.c |
137 | tc-v850.h | |
0fd8d5d9 RP |
138 | tc-vax.c |
139 | tc-vax.h | |
b3235d56 SC |
140 | tc-w65.c |
141 | tc-w65.h | |
163107a1 SC |
142 | tc-z8k.c |
143 | tc-z8k.h | |
daae8c92 | 144 | te-386bsd.h |
66b935da | 145 | te-aux.h |
880b7429 | 146 | te-delt88.h |
e33bfde7 | 147 | te-delta.h |
0fd8d5d9 | 148 | te-dpx2.h |
f5ed78de | 149 | te-dynix.h |
0fd8d5d9 | 150 | te-generic.h |
cd8aca19 | 151 | te-go32.h |
daae8c92 KR |
152 | te-hp300.h |
153 | te-hppa.h | |
cd625bf3 | 154 | te-i386aix.h |
0fd8d5d9 | 155 | te-ic960.h |
daae8c92 | 156 | te-linux.h |
d3ecee39 | 157 | te-lnews.h |
d0c25cae | 158 | te-lynx.h |
5efa30fa | 159 | te-mach.h |
75d1d87a | 160 | te-macos.h |
511cd41c | 161 | te-multi.h |
04050d57 | 162 | te-nbsd.h |
d5a0eeac | 163 | te-nbsd532.h |
f68880ea | 164 | te-pc532mach.h |
b04b02a5 | 165 | te-pe.h |
cd8aca19 | 166 | te-ppcnw.h |
8a6f53e9 | 167 | te-psos.h |
69c1de90 | 168 | te-riscix.h |
df4021c1 | 169 | te-sparcaout.h |
0fd8d5d9 | 170 | te-sun3.h |
fee3e248 | 171 | te-svr4.h |
920babce | 172 | te-sysv32.h |
0fd8d5d9 | 173 | vax-inst.h |
f649d525 | 174 | vms-a-conf.h |
e33bfde7 | 175 | vms-conf.h |
0fd8d5d9 | 176 | |
87756e15 RP |
177 | Things-to-lose: |
178 | ||
e33bfde7 ILT |
179 | # The lines between the "Do-last:" line and the end of the file |
180 | # are executed as a /bin/sh shell script after everything else is | |
181 | # done. | |
182 | ||
0fd8d5d9 RP |
183 | Do-last: |
184 | ||
276c2d7d | 185 | r5900_files="tc-mips.c" |
276c2d7d GRK |
186 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
187 | for i in $r5900_files ; do | |
188 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
189 | if [ -n "${verbose}" ] ; then | |
190 | echo Keeping r5900 stuff in $i | |
191 | fi | |
192 | fi | |
193 | done | |
194 | else | |
195 | for i in * ; do | |
196 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
197 | if [ -n "${verbose}" ] ; then | |
198 | echo Removing traces of \"r5900\" from $i... | |
199 | fi | |
200 | cp $i new | |
32e23ecd | 201 | sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new |
276c2d7d GRK |
202 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
203 | if [ -n "${verbose}" ] ; then | |
204 | echo Caching $i in .Recover... | |
205 | fi | |
206 | mv $i .Recover | |
207 | fi | |
208 | mv new $i | |
209 | fi | |
210 | done | |
211 | fi | |
212 | ||
9e58f7c1 | 213 | cygnus_files="tc-mips.c tc-hppa.c tc-mn10300.c" |
3d759c53 KR |
214 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
215 | for i in $cygnus_files ; do | |
216 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
aa2e0460 | 217 | if [ -n "${verbose}" ] ; then |
3d759c53 | 218 | echo Keeping cygnus stuff in $i |
aa2e0460 KR |
219 | fi |
220 | fi | |
221 | done | |
222 | else | |
223 | for i in * ; do | |
3d759c53 | 224 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
aa2e0460 | 225 | if [ -n "${verbose}" ] ; then |
3d759c53 | 226 | echo Removing traces of \"cygnus\" from $i... |
aa2e0460 KR |
227 | fi |
228 | cp $i new | |
3d759c53 | 229 | sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/d' < $i > new |
aa2e0460 KR |
230 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
231 | if [ -n "${verbose}" ] ; then | |
232 | echo Caching $i in .Recover... | |
233 | fi | |
234 | mv $i .Recover | |
235 | fi | |
236 | mv new $i | |
237 | fi | |
238 | done | |
239 | fi | |
240 | ||
35fa3bab | 241 | |
318b499d | 242 | tx19_files="tc-mips.c" |
318b499d GRK |
243 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
244 | for i in $tx19_files ; do | |
245 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
246 | if [ -n "${verbose}" ] ; then | |
247 | echo Keeping tx19 stuff in $i | |
248 | fi | |
249 | fi | |
250 | done | |
251 | else | |
252 | for i in * ; do | |
253 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
254 | if [ -n "${verbose}" ] ; then | |
255 | echo Removing traces of \"tx19\" from $i... | |
256 | fi | |
257 | cp $i new | |
258 | sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new | |
259 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
260 | if [ -n "${verbose}" ] ; then | |
261 | echo Caching $i in .Recover... | |
262 | fi | |
263 | mv $i .Recover | |
264 | fi | |
265 | mv new $i | |
266 | fi | |
267 | done | |
268 | fi | |
269 | ||
4ebda395 | 270 | tx49_files="ChangeLog tc-mips.c" |
4ebda395 GRK |
271 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
272 | for i in $tx49_files ; do | |
273 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
274 | if [ -n "${verbose}" ] ; then | |
275 | echo Keeping tx49 stuff in $i | |
276 | fi | |
277 | fi | |
278 | done | |
279 | else | |
280 | for i in * ; do | |
281 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
282 | if [ -n "${verbose}" ] ; then | |
283 | echo Removing traces of \"tx49\" from $i... | |
284 | fi | |
285 | cp $i new | |
286 | sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new | |
287 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
288 | if [ -n "${verbose}" ] ; then | |
289 | echo Caching $i in .Recover... | |
290 | fi | |
291 | mv $i .Recover | |
292 | fi | |
293 | mv new $i | |
294 | fi | |
295 | done | |
296 | fi | |
297 | ||
54d5e0fb | 298 | tic80_files="obj-coff.h" |
54d5e0fb AMT |
299 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
300 | for i in $tic80_files ; do | |
301 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
302 | if [ -n "${verbose}" ] ; then | |
303 | echo Keeping tic80 stuff in $i | |
304 | fi | |
305 | fi | |
306 | done | |
307 | else | |
308 | for i in * ; do | |
309 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
310 | if [ -n "${verbose}" ] ; then | |
311 | echo Removing traces of \"tic80\" from $i... | |
312 | fi | |
313 | cp $i new | |
32e23ecd | 314 | sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new |
54d5e0fb | 315 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
bf5ac1b8 JR |
316 | if [ -n "${verbose}" ] ; then |
317 | echo Caching $i in .Recover... | |
318 | fi | |
54d5e0fb AMT |
319 | mv $i .Recover |
320 | fi | |
321 | mv new $i | |
322 | fi | |
323 | done | |
324 | fi | |
325 | ||
d745e6d9 NC |
326 | m32rx_files="tc-m32r.c tc-m32r.h" |
327 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
328 | for i in $m32rx_files ; do | |
b6930bdf | 329 | if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then |
d745e6d9 NC |
330 | if [ -n "${verbose}" ] ; then |
331 | echo Keeping m32rx stuff in $i | |
332 | fi | |
333 | fi | |
334 | done | |
335 | else | |
336 | for i in $m32rx_files ; do | |
b6930bdf | 337 | if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then |
d745e6d9 NC |
338 | if [ -n "${verbose}" ] ; then |
339 | echo Removing traces of \"m32rx\" from $i... | |
340 | fi | |
341 | cp $i new | |
342 | sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new | |
343 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
b6930bdf NC |
344 | if [ -n "${verbose}" ] ; then |
345 | echo Caching $i in .Recover... | |
346 | fi | |
347 | mv $i .Recover | |
348 | fi | |
349 | mv new $i | |
350 | fi | |
351 | done | |
352 | fi | |
353 | if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then | |
354 | for i in $m32rx_files ; do | |
355 | if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then | |
356 | if [ -n "${verbose}" ] ; then | |
357 | echo Keeping m32rx stuff in $i | |
358 | fi | |
359 | fi | |
360 | done | |
361 | else | |
362 | for i in $m32rx_files ; do | |
363 | if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then | |
364 | if [ -n "${verbose}" ] ; then | |
365 | echo Removing traces of \"m32rx\" from $i... | |
366 | fi | |
367 | cp $i new | |
368 | sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new | |
369 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
ed70a335 GRK |
370 | if [ -n "${verbose}" ] ; then |
371 | echo Caching $i in .Recover... | |
372 | fi | |
373 | mv $i .Recover | |
374 | fi | |
375 | mv new $i | |
376 | fi | |
377 | done | |
378 | fi | |
379 | ||
f8c41900 GRK |
380 | vr4xxx_files="tc-mips.c" |
381 | if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then | |
382 | for i in $vr4xxx_files ; do | |
383 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
384 | if [ -n "${verbose}" ] ; then | |
385 | echo Keeping vr4xxx stuff in $i | |
386 | fi | |
387 | fi | |
388 | done | |
389 | else | |
390 | for i in $vr4xxx_files ; do | |
391 | if test -r $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
392 | if [ -n "${verbose}" ] ; then | |
393 | echo Removing traces of \"vr4xxx\" from $i... | |
394 | fi | |
395 | cp $i new | |
396 | sed '/start\-sanitize\-vr4xxx/,/end\-sanitize\-vr4xxx/d' < $i > new | |
397 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
398 | if [ -n "${verbose}" ] ; then | |
399 | echo Caching $i in .Recover... | |
400 | fi | |
401 | mv $i .Recover | |
402 | fi | |
403 | mv new $i | |
404 | fi | |
405 | done | |
406 | fi | |
407 | ||
2d035a50 GRK |
408 | vr4320_files="tc-mips.c" |
409 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then | |
410 | for i in $vr4320_files ; do | |
411 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
412 | if [ -n "${verbose}" ] ; then | |
413 | echo Keeping vr4320 stuff in $i | |
414 | fi | |
415 | fi | |
416 | done | |
417 | else | |
418 | for i in $vr4320_files ; do | |
419 | if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
420 | if [ -n "${verbose}" ] ; then | |
421 | echo Removing traces of \"vr4320\" from $i... | |
422 | fi | |
423 | cp $i new | |
424 | sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new | |
425 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
426 | if [ -n "${verbose}" ] ; then | |
427 | echo Caching $i in .Recover... | |
428 | fi | |
429 | mv $i .Recover | |
430 | fi | |
431 | mv new $i | |
432 | fi | |
433 | done | |
434 | fi | |
435 | ||
b08a983c GRK |
436 | branchbug4011_files="tc-mips.c" |
437 | if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then | |
438 | for i in $branchbug4011_files ; do | |
439 | if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then | |
440 | if [ -n "${verbose}" ] ; then | |
441 | echo Keeping branchbug4011 stuff in $i | |
442 | fi | |
443 | fi | |
444 | done | |
445 | else | |
446 | for i in $branchbug4011_files ; do | |
447 | if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then | |
448 | if [ -n "${verbose}" ] ; then | |
449 | echo Removing traces of \"branchbug4011\" from $i... | |
450 | fi | |
451 | cp $i new | |
452 | sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new | |
453 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
454 | if [ -n "${verbose}" ] ; then | |
455 | echo Caching $i in .Recover... | |
456 | fi | |
457 | mv $i .Recover | |
458 | fi | |
459 | mv new $i | |
460 | fi | |
461 | done | |
462 | fi | |
463 | ||
d745e6d9 | 464 | for i in * ; do |
af98e836 ILT |
465 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then |
466 | echo '***' Some mentions of Sanitize are still left in gas/config/$i! 1>&2 | |
467 | fi | |
468 | done | |
469 | ||
e33bfde7 | 470 | # eof |