txvu renamed to dvp
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
1 # .Sanitize for devo/gas/config
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
15
16 Do-first:
17
18 if [ -d vms ]; then
19 lose_these_too="vms ${lose_these_too}"
20 fi
21
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
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
37
38 sky_files="tc-dvp.c tc-dvp.h"
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
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
54 aout_gnu.h
55 atof-ieee.c
56 atof-tahoe.c
57 atof-vax.c
58 go32.cfg
59 e-i386coff.c
60 e-i386elf.c
61 e-mipsecoff.c
62 e-mipself.c
63 itbl-mips.h
64 m68k-parse.h
65 m68k-parse.y
66 m88k-opcode.h
67 obj-aout.c
68 obj-aout.h
69 obj-bout.c
70 obj-bout.h
71 obj-coff.c
72 obj-coff.h
73 obj-ecoff.c
74 obj-ecoff.h
75 obj-elf.c
76 obj-elf.h
77 obj-evax.c
78 obj-evax.h
79 obj-generic.c
80 obj-generic.h
81 obj-hp300.c
82 obj-hp300.h
83 obj-ieee.c
84 obj-ieee.h
85 obj-multi.c
86 obj-multi.h
87 obj-som.c
88 obj-som.h
89 obj-vms.c
90 obj-vms.h
91 tc-a29k.c
92 tc-a29k.h
93 tc-alpha.c
94 tc-alpha.h
95 tc-arc.c
96 tc-arc.h
97 tc-arm.c
98 tc-arm.h
99 tc-d10v.c
100 tc-d10v.h
101 tc-generic.c
102 tc-generic.h
103 tc-h8300.c
104 tc-h8300.h
105 tc-h8500.c
106 tc-h8500.h
107 tc-hppa.c
108 tc-hppa.h
109 tc-i386.c
110 tc-i386.h
111 tc-i860.c
112 tc-i860.h
113 tc-i960.c
114 tc-i960.h
115 tc-m32r.c
116 tc-m32r.h
117 tc-m68851.h
118 tc-m68k.c
119 tc-m68k.h
120 tc-m88k.c
121 tc-m88k.h
122 tc-mips.c
123 tc-mips.h
124 tc-mn10200.c
125 tc-mn10200.h
126 tc-mn10300.c
127 tc-mn10300.h
128 tc-ns32k.c
129 tc-ns32k.h
130 tc-ppc.c
131 tc-ppc.h
132 tc-sh.c
133 tc-sh.h
134 tc-sparc.c
135 tc-sparc.h
136 tc-tahoe.c
137 tc-tahoe.h
138 tc-v850.c
139 tc-v850.h
140 tc-vax.c
141 tc-vax.h
142 tc-w65.c
143 tc-w65.h
144 tc-z8k.c
145 tc-z8k.h
146 te-386bsd.h
147 te-aux.h
148 te-delta.h
149 te-delt88.h
150 te-dpx2.h
151 te-dynix.h
152 te-generic.h
153 te-go32.h
154 te-hp300.h
155 te-hppa.h
156 te-i386aix.h
157 te-ic960.h
158 te-linux.h
159 te-lnews.h
160 te-lynx.h
161 te-mach.h
162 te-macos.h
163 te-multi.h
164 te-nbsd.h
165 te-nbsd532.h
166 te-pc532mach.h
167 te-pe.h
168 te-ppcnw.h
169 te-psos.h
170 te-riscix.h
171 te-sparcaout.h
172 te-sun3.h
173 te-svr4.h
174 te-sysv32.h
175 vax-inst.h
176 vms-conf.h
177 vms-a-conf.h
178
179 Things-to-lose:
180
181 Do-last:
182
183 r5900_files="tc-mips.c"
184
185 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
186 for i in $r5900_files ; do
187 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
188 if [ -n "${verbose}" ] ; then
189 echo Keeping r5900 stuff in $i
190 fi
191 fi
192 done
193 else
194 for i in * ; do
195 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
196 if [ -n "${verbose}" ] ; then
197 echo Removing traces of \"r5900\" from $i...
198 fi
199 cp $i new
200 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
201 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
202 if [ -n "${verbose}" ] ; then
203 echo Caching $i in .Recover...
204 fi
205 mv $i .Recover
206 fi
207 mv new $i
208 fi
209 done
210 fi
211
212 vr5400_files="tc-mips.c"
213 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
214 for i in $vr5400_files ; do
215 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
216 if [ -n "${verbose}" ] ; then
217 echo Keeping vr5400 stuff in $i
218 fi
219 fi
220 done
221 else
222 for i in * ; do
223 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
224 if [ -n "${verbose}" ] ; then
225 echo Removing traces of \"vr5400\" from $i...
226 fi
227 cp $i new
228 sed '/start\-sanitize\-vr5400/,/end\-sanitize\-vr5400/d' < $i > new
229 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
230 if [ -n "${verbose}" ] ; then
231 echo Caching $i in .Recover...
232 fi
233 mv $i .Recover
234 fi
235 mv new $i
236 fi
237 done
238 fi
239
240 tx19_files="tc-mips.c"
241
242 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
243 for i in $tx19_files ; do
244 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
245 if [ -n "${verbose}" ] ; then
246 echo Keeping tx19 stuff in $i
247 fi
248 fi
249 done
250 else
251 for i in * ; do
252 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
253 if [ -n "${verbose}" ] ; then
254 echo Removing traces of \"tx19\" from $i...
255 fi
256 cp $i new
257 sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/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 fi
268
269 tx49_files="ChangeLog tc-mips.c"
270
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
298 tic80_files="obj-coff.h"
299
300 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
301 for i in $tic80_files ; do
302 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Keeping tic80 stuff in $i
305 fi
306 fi
307 done
308 else
309 for i in * ; do
310 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
311 if [ -n "${verbose}" ] ; then
312 echo Removing traces of \"tic80\" from $i...
313 fi
314 cp $i new
315 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
316 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
317 if [ -n "${verbose}" ] ; then
318 echo Caching $i in .Recover...
319 fi
320 mv $i .Recover
321 fi
322 mv new $i
323 fi
324 done
325 fi
326
327 if [ -n "${verbose}" ] ; then
328 echo Processing \"sh4\"...
329 fi
330
331 sh4_files="tc-sh.c"
332 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
333 for i in $sh4_files ; do
334 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
335 if [ -n "${verbose}" ] ; then
336 echo Keeping sh4 stuff in $i
337 fi
338 fi
339 done
340 else
341 for i in $sh4_files ; do
342 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
343 if [ -n "${verbose}" ] ; then
344 echo Removing traces of \"sh4\" from $i...
345 fi
346 cp $i new
347 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
348 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
349 if [ -n "${verbose}" ] ; then
350 echo Caching $i in .Recover...
351 fi
352 mv $i .Recover
353 fi
354 mv new $i
355 fi
356 done
357 fi
358
359 v850e_files="tc-v850.c tc-v850.h"
360 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
361 for i in $v850e_files ; do
362 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
363 if [ -n "${verbose}" ] ; then
364 echo Keeping v850e stuff in $i
365 fi
366 fi
367 done
368 else
369 for i in $v850e_files ; do
370 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
371 if [ -n "${verbose}" ] ; then
372 echo Removing traces of \"v850e\" from $i...
373 fi
374 cp $i new
375 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
376 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
377 if [ -n "${verbose}" ] ; then
378 echo Caching $i in .Recover...
379 fi
380 mv $i .Recover
381 fi
382 mv new $i
383 fi
384 done
385 fi
386
387 m32rx_files="tc-m32r.c tc-m32r.h"
388 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
389 for i in $m32rx_files ; do
390 if test ! -d $i && (grep sanitize\-m32rx $i > /dev/null) ; then
391 if [ -n "${verbose}" ] ; then
392 echo Keeping m32rx stuff in $i
393 fi
394 fi
395 done
396 else
397 for i in $m32rx_files ; do
398 if test -r $i && (grep sanitize\-m32rx $i > /dev/null) ; then
399 if [ -n "${verbose}" ] ; then
400 echo Removing traces of \"m32rx\" from $i...
401 fi
402 cp $i new
403 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
404 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
405 if [ -n "${verbose}" ] ; then
406 echo Caching $i in .Recover...
407 fi
408 mv $i .Recover
409 fi
410 mv new $i
411 fi
412 done
413 fi
414 if ( echo $* | grep keep\-phase2\-m32rx > /dev/null ) ; then
415 for i in $m32rx_files ; do
416 if test ! -d $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
417 if [ -n "${verbose}" ] ; then
418 echo Keeping m32rx stuff in $i
419 fi
420 fi
421 done
422 else
423 for i in $m32rx_files ; do
424 if test -r $i && (grep sanitize\-phase2\-m32rx $i > /dev/null) ; then
425 if [ -n "${verbose}" ] ; then
426 echo Removing traces of \"m32rx\" from $i...
427 fi
428 cp $i new
429 sed '/start\-sanitize\-phase2\-m32rx/,/end\-sanitize\-phase2\-m32rx/d' < $i > new
430 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
431 if [ -n "${verbose}" ] ; then
432 echo Caching $i in .Recover...
433 fi
434 mv $i .Recover
435 fi
436 mv new $i
437 fi
438 done
439 fi
440
441 vr4111_files="tc-mips.c"
442 if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
443 for i in $vr4111_files ; do
444 if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
445 if [ -n "${verbose}" ] ; then
446 echo Keeping vr4111 stuff in $i
447 fi
448 fi
449 done
450 else
451 for i in $vr4111_files ; do
452 if test -r $i && (grep sanitize-vr4111 $i > /dev/null) ; then
453 if [ -n "${verbose}" ] ; then
454 echo Removing traces of \"vr4111\" from $i...
455 fi
456 cp $i new
457 sed '/start\-sanitize\-vr4111/,/end\-sanitize\-vr4111/d' < $i > new
458 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
459 if [ -n "${verbose}" ] ; then
460 echo Caching $i in .Recover...
461 fi
462 mv $i .Recover
463 fi
464 mv new $i
465 fi
466 done
467 fi
468
469 for i in * ; do
470 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
471 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
472 fi
473 done
474
475 # End of file.
This page took 0.042222 seconds and 5 git commands to generate.