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