Remove v850e sanitization
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
CommitLineData
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
16Do-first:
17
6438209c
KR
18if [ -d vms ]; then
19 lose_these_too="vms ${lose_these_too}"
20fi
21
64556643
FF
22tic80_files="tc-tic80.c tc-tic80.h"
23
24if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
25 keep_these_too="${tic80_files} ${keep_these_too}"
26else
27 lose_these_too="${tic80_files} ${lose_these_too}"
28fi
c6aa56bc 29
276dd6ef 30sky_files="tc-dvp.c tc-dvp.h"
209fb346
DE
31
32if ( echo $* | grep keep\-sky > /dev/null ) ; then
33 keep_these_too="${sky_files} ${keep_these_too}"
34else
35 lose_these_too="${sky_files} ${lose_these_too}"
36fi
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
44Things-to-keep:
45
3e6e09c0 46aout_gnu.h
0fd8d5d9 47atof-ieee.c
b41390d2 48atof-tahoe.c
0fd8d5d9 49atof-vax.c
034988c6
ILT
50e-i386coff.c
51e-i386elf.c
511cd41c
KR
52e-mipsecoff.c
53e-mipself.c
e33bfde7 54go32.cfg
8e5c905e 55itbl-mips.h
a1c7c0f3
ILT
56m68k-parse.h
57m68k-parse.y
cd625bf3 58m88k-opcode.h
0fd8d5d9
RP
59obj-aout.c
60obj-aout.h
0fd8d5d9
RP
61obj-bout.c
62obj-bout.h
63obj-coff.c
64obj-coff.h
e99f6f9c
ILT
65obj-ecoff.c
66obj-ecoff.h
a4099f78
KR
67obj-elf.c
68obj-elf.h
f649d525
ILT
69obj-evax.c
70obj-evax.h
0fd8d5d9
RP
71obj-generic.c
72obj-generic.h
daae8c92
KR
73obj-hp300.c
74obj-hp300.h
fd345c9c
SC
75obj-ieee.c
76obj-ieee.h
511cd41c
KR
77obj-multi.c
78obj-multi.h
0fa747c4
JL
79obj-som.c
80obj-som.h
b41390d2
KR
81obj-vms.c
82obj-vms.h
0fd8d5d9
RP
83tc-a29k.c
84tc-a29k.h
5749c497
KR
85tc-alpha.c
86tc-alpha.h
bdb836d1
DE
87tc-arc.c
88tc-arc.h
6c3bc2b8
KR
89tc-arm.c
90tc-arm.h
8a683c67
ILT
91tc-d10v.c
92tc-d10v.h
cc88a106
ILT
93tc-d30v.c
94tc-d30v.h
3a794236
DE
95tc-fr30.c
96tc-fr30.h
0fd8d5d9
RP
97tc-generic.c
98tc-generic.h
fd345c9c
SC
99tc-h8300.c
100tc-h8300.h
033400ec
SC
101tc-h8500.c
102tc-h8500.h
daae8c92
KR
103tc-hppa.c
104tc-hppa.h
0fd8d5d9
RP
105tc-i386.c
106tc-i386.h
107tc-i860.c
108tc-i860.h
109tc-i960.c
110tc-i960.h
9f719a56
DE
111tc-m32r.c
112tc-m32r.h
0fd8d5d9
RP
113tc-m68851.h
114tc-m68k.c
115tc-m68k.h
cd625bf3
DHW
116tc-m88k.c
117tc-m88k.h
fd345c9c
SC
118tc-mips.c
119tc-mips.h
ae1b99e4
JL
120tc-mn10200.c
121tc-mn10200.h
122tc-mn10300.c
123tc-mn10300.h
0fd8d5d9
RP
124tc-ns32k.c
125tc-ns32k.h
af46c203
ILT
126tc-ppc.c
127tc-ppc.h
4a1bbbe7
SC
128tc-sh.c
129tc-sh.h
6690d829 130tc-sparc.c
920babce 131tc-sparc.h
af3b5ad2
KR
132tc-tahoe.c
133tc-tahoe.h
0e034c77
ILT
134tc-tic30.c
135tc-tic30.h
8f3c5ddb
NC
136tc-v850.c
137tc-v850.h
0fd8d5d9
RP
138tc-vax.c
139tc-vax.h
b3235d56
SC
140tc-w65.c
141tc-w65.h
163107a1
SC
142tc-z8k.c
143tc-z8k.h
daae8c92 144te-386bsd.h
66b935da 145te-aux.h
880b7429 146te-delt88.h
e33bfde7 147te-delta.h
0fd8d5d9 148te-dpx2.h
f5ed78de 149te-dynix.h
0fd8d5d9 150te-generic.h
cd8aca19 151te-go32.h
daae8c92
KR
152te-hp300.h
153te-hppa.h
cd625bf3 154te-i386aix.h
0fd8d5d9 155te-ic960.h
daae8c92 156te-linux.h
d3ecee39 157te-lnews.h
d0c25cae 158te-lynx.h
5efa30fa 159te-mach.h
75d1d87a 160te-macos.h
511cd41c 161te-multi.h
04050d57 162te-nbsd.h
d5a0eeac 163te-nbsd532.h
f68880ea 164te-pc532mach.h
b04b02a5 165te-pe.h
cd8aca19 166te-ppcnw.h
8a6f53e9 167te-psos.h
69c1de90 168te-riscix.h
df4021c1 169te-sparcaout.h
0fd8d5d9 170te-sun3.h
fee3e248 171te-svr4.h
920babce 172te-sysv32.h
0fd8d5d9 173vax-inst.h
f649d525 174vms-a-conf.h
e33bfde7 175vms-conf.h
0fd8d5d9 176
87756e15
RP
177Things-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
183Do-last:
184
276c2d7d 185r5900_files="tc-mips.c"
276c2d7d
GRK
186if ( 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
194else
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
211fi
212
9e58f7c1 213cygnus_files="tc-mips.c tc-hppa.c tc-mn10300.c"
3d759c53
KR
214if ( 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
222else
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
239fi
240
35fa3bab 241
318b499d 242tx19_files="tc-mips.c"
318b499d
GRK
243if ( 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
251else
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
268fi
269
4ebda395 270tx49_files="ChangeLog tc-mips.c"
4ebda395
GRK
271if ( 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
279else
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
296fi
297
54d5e0fb 298tic80_files="obj-coff.h"
54d5e0fb
AMT
299if ( 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
307else
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
324fi
325
d745e6d9
NC
326m32rx_files="tc-m32r.c tc-m32r.h"
327if ( 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
335else
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
352fi
353if ( 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
361else
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
378fi
379
f8c41900
GRK
380vr4xxx_files="tc-mips.c"
381if ( 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
389else
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
406fi
407
2d035a50
GRK
408vr4320_files="tc-mips.c"
409if ( 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
417else
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
434fi
435
b08a983c
GRK
436branchbug4011_files="tc-mips.c"
437if ( 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
445else
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
462fi
463
d745e6d9 464for 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
468done
469
e33bfde7 470# eof
This page took 0.271169 seconds and 4 git commands to generate.