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