* sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
[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
833c46e1 18arc_files="tc-arc.c tc-arc.h"
bc70eba5
DE
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
9b1168d6
MH
26d30v_files="tc-d30v.c tc-d30v.h"
27
28if ( echo $* | grep keep\-d30v > /dev/null ) ; then
29 keep_these_too="${d30v_files} ${keep_these_too}"
30else
31 lose_these_too="${d30v_files} ${lose_these_too}"
32fi
33
64556643
FF
34tic80_files="tc-tic80.c tc-tic80.h"
35
36if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
37 keep_these_too="${tic80_files} ${keep_these_too}"
38else
39 lose_these_too="${tic80_files} ${lose_these_too}"
40fi
c6aa56bc 41
0fd8d5d9
RP
42# All files listed between the "Things-to-keep:" line and the
43# "Files-to-sed:" line will be kept. All other files will be removed.
44# Directories listed in this section will have their own Sanitize
45# called. Directories not listed will be removed in their entirety
46# with rm -rf.
47
48Things-to-keep:
49
3e6e09c0 50aout_gnu.h
0fd8d5d9 51atof-ieee.c
b41390d2 52atof-tahoe.c
0fd8d5d9 53atof-vax.c
cd8aca19 54go32.cfg
034988c6
ILT
55e-i386coff.c
56e-i386elf.c
511cd41c
KR
57e-mipsecoff.c
58e-mipself.c
8e5c905e 59itbl-mips.h
a1c7c0f3
ILT
60m68k-parse.h
61m68k-parse.y
cd625bf3 62m88k-opcode.h
0fd8d5d9
RP
63obj-aout.c
64obj-aout.h
0fd8d5d9
RP
65obj-bout.c
66obj-bout.h
67obj-coff.c
68obj-coff.h
e99f6f9c
ILT
69obj-ecoff.c
70obj-ecoff.h
a4099f78
KR
71obj-elf.c
72obj-elf.h
f649d525
ILT
73obj-evax.c
74obj-evax.h
0fd8d5d9
RP
75obj-generic.c
76obj-generic.h
daae8c92
KR
77obj-hp300.c
78obj-hp300.h
fd345c9c
SC
79obj-ieee.c
80obj-ieee.h
511cd41c
KR
81obj-multi.c
82obj-multi.h
0fa747c4
JL
83obj-som.c
84obj-som.h
b41390d2
KR
85obj-vms.c
86obj-vms.h
0fd8d5d9
RP
87tc-a29k.c
88tc-a29k.h
5749c497
KR
89tc-alpha.c
90tc-alpha.h
6c3bc2b8
KR
91tc-arm.c
92tc-arm.h
8a683c67
ILT
93tc-d10v.c
94tc-d10v.h
0fd8d5d9
RP
95tc-generic.c
96tc-generic.h
fd345c9c
SC
97tc-h8300.c
98tc-h8300.h
033400ec
SC
99tc-h8500.c
100tc-h8500.h
daae8c92
KR
101tc-hppa.c
102tc-hppa.h
0fd8d5d9
RP
103tc-i386.c
104tc-i386.h
105tc-i860.c
106tc-i860.h
107tc-i960.c
108tc-i960.h
9f719a56
DE
109tc-m32r.c
110tc-m32r.h
0fd8d5d9
RP
111tc-m68851.h
112tc-m68k.c
113tc-m68k.h
cd625bf3
DHW
114tc-m88k.c
115tc-m88k.h
fd345c9c
SC
116tc-mips.c
117tc-mips.h
ae1b99e4
JL
118tc-mn10200.c
119tc-mn10200.h
120tc-mn10300.c
121tc-mn10300.h
0fd8d5d9
RP
122tc-ns32k.c
123tc-ns32k.h
af46c203
ILT
124tc-ppc.c
125tc-ppc.h
4a1bbbe7
SC
126tc-sh.c
127tc-sh.h
6690d829 128tc-sparc.c
920babce 129tc-sparc.h
af3b5ad2
KR
130tc-tahoe.c
131tc-tahoe.h
0fd8d5d9
RP
132tc-vax.c
133tc-vax.h
b3235d56
SC
134tc-w65.c
135tc-w65.h
6ff87ead
NC
136tc-v850.c
137tc-v850.h
163107a1
SC
138tc-z8k.c
139tc-z8k.h
daae8c92 140te-386bsd.h
66b935da 141te-aux.h
757d4129 142te-delta.h
880b7429 143te-delt88.h
0fd8d5d9 144te-dpx2.h
f5ed78de 145te-dynix.h
0fd8d5d9 146te-generic.h
cd8aca19 147te-go32.h
daae8c92
KR
148te-hp300.h
149te-hppa.h
cd625bf3 150te-i386aix.h
0fd8d5d9 151te-ic960.h
daae8c92 152te-linux.h
d3ecee39 153te-lnews.h
d0c25cae 154te-lynx.h
5efa30fa 155te-mach.h
75d1d87a 156te-macos.h
511cd41c 157te-multi.h
04050d57 158te-nbsd.h
d5a0eeac 159te-nbsd532.h
f68880ea 160te-pc532mach.h
b04b02a5 161te-pe.h
cd8aca19 162te-ppcnw.h
8a6f53e9 163te-psos.h
69c1de90 164te-riscix.h
df4021c1 165te-sparcaout.h
0fd8d5d9 166te-sun3.h
fee3e248 167te-svr4.h
920babce 168te-sysv32.h
0fd8d5d9 169vax-inst.h
ba466c4c 170vms-conf.h
f649d525 171vms-a-conf.h
0fd8d5d9 172
87756e15
RP
173Things-to-lose:
174
0fd8d5d9
RP
175Do-last:
176
276c2d7d
GRK
177r5900_files="tc-mips.c"
178
179if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
180 for i in $r5900_files ; do
181 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
182 if [ -n "${verbose}" ] ; then
183 echo Keeping r5900 stuff in $i
184 fi
185 fi
186 done
187else
188 for i in * ; do
189 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
190 if [ -n "${verbose}" ] ; then
191 echo Removing traces of \"r5900\" from $i...
192 fi
193 cp $i new
32e23ecd 194 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
276c2d7d
GRK
195 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
196 if [ -n "${verbose}" ] ; then
197 echo Caching $i in .Recover...
198 fi
199 mv $i .Recover
200 fi
201 mv new $i
202 fi
203 done
204fi
205
54d5e0fb
AMT
206tic80_files="obj-coff.h"
207
208if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
209 for i in $tic80_files ; do
210 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
211 if [ -n "${verbose}" ] ; then
212 echo Keeping tic80 stuff in $i
213 fi
214 fi
215 done
216else
217 for i in * ; do
218 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
219 if [ -n "${verbose}" ] ; then
220 echo Removing traces of \"tic80\" from $i...
221 fi
222 cp $i new
32e23ecd 223 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
54d5e0fb 224 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
bf5ac1b8
JR
225 if [ -n "${verbose}" ] ; then
226 echo Caching $i in .Recover...
227 fi
228 mv $i .Recover
229 fi
230 mv new $i
231 fi
232 done
233fi
234
235if [ -n "${verbose}" ] ; then
236 echo Processing \"sh4\"...
237fi
238
239sh4_files="tc-sh.c"
240if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
241 for i in $sh4_files ; do
242 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
243 if [ -n "${verbose}" ] ; then
244 echo Keeping sh4 stuff in $i
245 fi
246 fi
247 done
248else
249 for i in $sh4_files ; do
250 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
251 if [ -n "${verbose}" ] ; then
252 echo Removing traces of \"sh4\" from $i...
253 fi
254 cp $i new
255 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
256 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
54d5e0fb
AMT
257 if [ -n "${verbose}" ] ; then
258 echo Caching $i in .Recover...
259 fi
260 mv $i .Recover
261 fi
262 mv new $i
263 fi
264 done
265fi
266
32e23ecd
NC
267v850e_files="tc-v850.c tc-v850.h"
268if ( echo $* | grep keep\-v850e > /dev/null ) ; then
58036ae4
NC
269 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
270 for i in $v850e_files ; do
323b12f8 271 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
58036ae4
NC
272 if [ -n "${verbose}" ] ; then
273 echo Keeping v850e and v850eq stuff in $i
274 fi
275 fi
276 done
277 else
32e23ecd 278 for i in $v850e_files ; do
323b12f8 279 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
32e23ecd
NC
280 if [ -n "${verbose}" ] ; then
281 echo Removing traces of \"v850eq\" from $i...
282 fi
283 cp $i new
284 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
285 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
286 if [ -n "${verbose}" ] ; then
287 echo Caching $i in .Recover...
288 fi
289 mv $i .Recover
290 fi
291 mv new $i
292 fi
293 done
58036ae4 294 fi
32e23ecd
NC
295else
296 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
297 for i in $v850e_files ; do
323b12f8 298 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
32e23ecd
NC
299 if [ -n "${verbose}" ] ; then
300 echo Keeping v850e and v850eq stuff in $i
301 fi
302 fi
303 done
304 else
305 for i in $v850e_files ; do
323b12f8 306 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
32e23ecd
NC
307 if [ -n "${verbose}" ] ; then
308 echo Removing traces of \"v850e\" from $i...
309 fi
310 cp $i new
311 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
32e23ecd
NC
312 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
313 if [ -n "${verbose}" ] ; then
314 echo Caching $i in .Recover...
315 fi
316 mv $i .Recover
317 fi
58036ae4
NC
318 mv new $i
319 fi
323b12f8 320 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
58036ae4
NC
321 if [ -n "${verbose}" ] ; then
322 echo Removing traces of \"v850eq\" from $i...
323 fi
324 cp $i new
325 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
326 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
327 if [ -n "${verbose}" ] ; then
328 echo Caching $i in .Recover...
329 fi
330 mv $i .Recover
331 fi
332 mv new $i
32e23ecd
NC
333 fi
334 done
335 fi
336fi
276c2d7d 337
0fd8d5d9 338# End of file.
This page took 0.231891 seconds and 4 git commands to generate.