Added m32rx 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
14# done in this
15
16Do-first:
17
6438209c
KR
18if [ -d vms ]; then
19 lose_these_too="vms ${lose_these_too}"
20fi
21
9b1168d6
MH
22d30v_files="tc-d30v.c tc-d30v.h"
23
24if ( echo $* | grep keep\-d30v > /dev/null ) ; then
25 keep_these_too="${d30v_files} ${keep_these_too}"
26else
27 lose_these_too="${d30v_files} ${lose_these_too}"
28fi
29
64556643
FF
30tic80_files="tc-tic80.c tc-tic80.h"
31
32if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
33 keep_these_too="${tic80_files} ${keep_these_too}"
34else
35 lose_these_too="${tic80_files} ${lose_these_too}"
36fi
c6aa56bc 37
0fd8d5d9
RP
38# All files listed between the "Things-to-keep:" line and the
39# "Files-to-sed:" line will be kept. All other files will be removed.
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
cd8aca19 50go32.cfg
034988c6
ILT
51e-i386coff.c
52e-i386elf.c
511cd41c
KR
53e-mipsecoff.c
54e-mipself.c
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
0fd8d5d9
RP
93tc-generic.c
94tc-generic.h
fd345c9c
SC
95tc-h8300.c
96tc-h8300.h
033400ec
SC
97tc-h8500.c
98tc-h8500.h
daae8c92
KR
99tc-hppa.c
100tc-hppa.h
0fd8d5d9
RP
101tc-i386.c
102tc-i386.h
103tc-i860.c
104tc-i860.h
105tc-i960.c
106tc-i960.h
9f719a56
DE
107tc-m32r.c
108tc-m32r.h
0fd8d5d9
RP
109tc-m68851.h
110tc-m68k.c
111tc-m68k.h
cd625bf3
DHW
112tc-m88k.c
113tc-m88k.h
fd345c9c
SC
114tc-mips.c
115tc-mips.h
ae1b99e4
JL
116tc-mn10200.c
117tc-mn10200.h
118tc-mn10300.c
119tc-mn10300.h
0fd8d5d9
RP
120tc-ns32k.c
121tc-ns32k.h
af46c203
ILT
122tc-ppc.c
123tc-ppc.h
4a1bbbe7
SC
124tc-sh.c
125tc-sh.h
6690d829 126tc-sparc.c
920babce 127tc-sparc.h
af3b5ad2
KR
128tc-tahoe.c
129tc-tahoe.h
8f3c5ddb
NC
130tc-v850.c
131tc-v850.h
0fd8d5d9
RP
132tc-vax.c
133tc-vax.h
b3235d56
SC
134tc-w65.c
135tc-w65.h
163107a1
SC
136tc-z8k.c
137tc-z8k.h
daae8c92 138te-386bsd.h
66b935da 139te-aux.h
757d4129 140te-delta.h
880b7429 141te-delt88.h
0fd8d5d9 142te-dpx2.h
f5ed78de 143te-dynix.h
0fd8d5d9 144te-generic.h
cd8aca19 145te-go32.h
daae8c92
KR
146te-hp300.h
147te-hppa.h
cd625bf3 148te-i386aix.h
0fd8d5d9 149te-ic960.h
daae8c92 150te-linux.h
d3ecee39 151te-lnews.h
d0c25cae 152te-lynx.h
5efa30fa 153te-mach.h
75d1d87a 154te-macos.h
511cd41c 155te-multi.h
04050d57 156te-nbsd.h
d5a0eeac 157te-nbsd532.h
f68880ea 158te-pc532mach.h
b04b02a5 159te-pe.h
cd8aca19 160te-ppcnw.h
8a6f53e9 161te-psos.h
69c1de90 162te-riscix.h
df4021c1 163te-sparcaout.h
0fd8d5d9 164te-sun3.h
fee3e248 165te-svr4.h
920babce 166te-sysv32.h
0fd8d5d9 167vax-inst.h
ba466c4c 168vms-conf.h
f649d525 169vms-a-conf.h
0fd8d5d9 170
87756e15
RP
171Things-to-lose:
172
0fd8d5d9
RP
173Do-last:
174
276c2d7d
GRK
175r5900_files="tc-mips.c"
176
177if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
178 for i in $r5900_files ; do
179 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
180 if [ -n "${verbose}" ] ; then
181 echo Keeping r5900 stuff in $i
182 fi
183 fi
184 done
185else
186 for i in * ; do
187 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
188 if [ -n "${verbose}" ] ; then
189 echo Removing traces of \"r5900\" from $i...
190 fi
191 cp $i new
32e23ecd 192 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
276c2d7d
GRK
193 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
194 if [ -n "${verbose}" ] ; then
195 echo Caching $i in .Recover...
196 fi
197 mv $i .Recover
198 fi
199 mv new $i
200 fi
201 done
202fi
203
aa2e0460
KR
204vr5400_files="tc-mips.c"
205if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
206 for i in $vr5400_files ; do
207 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Keeping vr5400 stuff in $i
210 fi
211 fi
212 done
213else
214 for i in * ; do
215 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
216 if [ -n "${verbose}" ] ; then
217 echo Removing traces of \"vr5400\" from $i...
218 fi
219 cp $i new
220 sed '/start\-sanitize\-vr5400/,/end\-sanitize\-vr5400/d' < $i > new
221 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
222 if [ -n "${verbose}" ] ; then
223 echo Caching $i in .Recover...
224 fi
225 mv $i .Recover
226 fi
227 mv new $i
228 fi
229 done
230fi
231
318b499d
GRK
232tx19_files="tc-mips.c"
233
234if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
235 for i in $tx19_files ; do
236 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
237 if [ -n "${verbose}" ] ; then
238 echo Keeping tx19 stuff in $i
239 fi
240 fi
241 done
242else
243 for i in * ; do
244 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
245 if [ -n "${verbose}" ] ; then
246 echo Removing traces of \"tx19\" from $i...
247 fi
248 cp $i new
249 sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
250 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
251 if [ -n "${verbose}" ] ; then
252 echo Caching $i in .Recover...
253 fi
254 mv $i .Recover
255 fi
256 mv new $i
257 fi
258 done
259fi
260
4ebda395
GRK
261tx49_files="ChangeLog tc-mips.c"
262
263if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
264 for i in $tx49_files ; do
265 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
266 if [ -n "${verbose}" ] ; then
267 echo Keeping tx49 stuff in $i
268 fi
269 fi
270 done
271else
272 for i in * ; do
273 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Removing traces of \"tx49\" from $i...
276 fi
277 cp $i new
278 sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
279 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
280 if [ -n "${verbose}" ] ; then
281 echo Caching $i in .Recover...
282 fi
283 mv $i .Recover
284 fi
285 mv new $i
286 fi
287 done
288fi
289
54d5e0fb
AMT
290tic80_files="obj-coff.h"
291
292if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
293 for i in $tic80_files ; do
294 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
295 if [ -n "${verbose}" ] ; then
296 echo Keeping tic80 stuff in $i
297 fi
298 fi
299 done
300else
301 for i in * ; do
302 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Removing traces of \"tic80\" from $i...
305 fi
306 cp $i new
32e23ecd 307 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
54d5e0fb 308 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
bf5ac1b8
JR
309 if [ -n "${verbose}" ] ; then
310 echo Caching $i in .Recover...
311 fi
312 mv $i .Recover
313 fi
314 mv new $i
315 fi
316 done
317fi
318
319if [ -n "${verbose}" ] ; then
320 echo Processing \"sh4\"...
321fi
322
323sh4_files="tc-sh.c"
324if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
325 for i in $sh4_files ; do
326 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
327 if [ -n "${verbose}" ] ; then
328 echo Keeping sh4 stuff in $i
329 fi
330 fi
331 done
332else
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 Removing traces of \"sh4\" from $i...
337 fi
338 cp $i new
339 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
340 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
54d5e0fb
AMT
341 if [ -n "${verbose}" ] ; then
342 echo Caching $i in .Recover...
343 fi
344 mv $i .Recover
345 fi
346 mv new $i
347 fi
348 done
349fi
350
32e23ecd
NC
351v850e_files="tc-v850.c tc-v850.h"
352if ( echo $* | grep keep\-v850e > /dev/null ) ; then
ae6ecba5
NC
353 for i in $v850e_files ; do
354 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
355 if [ -n "${verbose}" ] ; then
356 echo Keeping v850e stuff in $i
357 fi
358 fi
359 done
360else
32e23ecd 361 for i in $v850e_files ; do
210c24d6 362 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
58036ae4 363 if [ -n "${verbose}" ] ; then
210c24d6 364 echo Removing traces of \"v850e\" from $i...
58036ae4
NC
365 fi
366 cp $i new
210c24d6 367 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
58036ae4
NC
368 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
369 if [ -n "${verbose}" ] ; then
370 echo Caching $i in .Recover...
371 fi
372 mv $i .Recover
373 fi
374 mv new $i
32e23ecd
NC
375 fi
376 done
32e23ecd 377fi
276c2d7d 378
0fd8d5d9 379# End of file.
This page took 0.229913 seconds and 4 git commands to generate.