Removed v850 sanitization.
[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 tic80_files="tc-tic80.c tc-tic80.h"
35
36 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
37 keep_these_too="${tic80_files} ${keep_these_too}"
38 else
39 lose_these_too="${tic80_files} ${lose_these_too}"
40 fi
41
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
48 Things-to-keep:
49
50 aout_gnu.h
51 atof-ieee.c
52 atof-tahoe.c
53 atof-vax.c
54 go32.cfg
55 e-i386coff.c
56 e-i386elf.c
57 e-mipsecoff.c
58 e-mipself.c
59 itbl-mips.h
60 m68k-parse.h
61 m68k-parse.y
62 m88k-opcode.h
63 obj-aout.c
64 obj-aout.h
65 obj-bout.c
66 obj-bout.h
67 obj-coff.c
68 obj-coff.h
69 obj-ecoff.c
70 obj-ecoff.h
71 obj-elf.c
72 obj-elf.h
73 obj-evax.c
74 obj-evax.h
75 obj-generic.c
76 obj-generic.h
77 obj-hp300.c
78 obj-hp300.h
79 obj-ieee.c
80 obj-ieee.h
81 obj-multi.c
82 obj-multi.h
83 obj-som.c
84 obj-som.h
85 obj-vms.c
86 obj-vms.h
87 tc-a29k.c
88 tc-a29k.h
89 tc-alpha.c
90 tc-alpha.h
91 tc-arm.c
92 tc-arm.h
93 tc-d10v.c
94 tc-d10v.h
95 tc-generic.c
96 tc-generic.h
97 tc-h8300.c
98 tc-h8300.h
99 tc-h8500.c
100 tc-h8500.h
101 tc-hppa.c
102 tc-hppa.h
103 tc-i386.c
104 tc-i386.h
105 tc-i860.c
106 tc-i860.h
107 tc-i960.c
108 tc-i960.h
109 tc-m32r.c
110 tc-m32r.h
111 tc-m68851.h
112 tc-m68k.c
113 tc-m68k.h
114 tc-m88k.c
115 tc-m88k.h
116 tc-mips.c
117 tc-mips.h
118 tc-mn10200.c
119 tc-mn10200.h
120 tc-mn10300.c
121 tc-mn10300.h
122 tc-ns32k.c
123 tc-ns32k.h
124 tc-ppc.c
125 tc-ppc.h
126 tc-sh.c
127 tc-sh.h
128 tc-sparc.c
129 tc-sparc.h
130 tc-tahoe.c
131 tc-tahoe.h
132 tc-vax.c
133 tc-vax.h
134 tc-w65.c
135 tc-w65.h
136 tc-v850.c
137 tc-v850.h
138 tc-z8k.c
139 tc-z8k.h
140 te-386bsd.h
141 te-aux.h
142 te-delta.h
143 te-delt88.h
144 te-dpx2.h
145 te-dynix.h
146 te-generic.h
147 te-go32.h
148 te-hp300.h
149 te-hppa.h
150 te-i386aix.h
151 te-ic960.h
152 te-linux.h
153 te-lnews.h
154 te-lynx.h
155 te-mach.h
156 te-macos.h
157 te-multi.h
158 te-nbsd.h
159 te-nbsd532.h
160 te-pc532mach.h
161 te-pe.h
162 te-ppcnw.h
163 te-psos.h
164 te-riscix.h
165 te-sparcaout.h
166 te-sun3.h
167 te-svr4.h
168 te-sysv32.h
169 vax-inst.h
170 vms-conf.h
171 vms-a-conf.h
172
173 Things-to-lose:
174
175 Do-last:
176
177 r5900_files="tc-mips.c"
178
179 if ( 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
187 else
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
194 sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
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
204 fi
205
206 tic80_files="obj-coff.h"
207
208 if ( 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
216 else
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
223 sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
224 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
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
233 fi
234
235 if [ -n "${verbose}" ] ; then
236 echo Processing \"sh4\"...
237 fi
238
239 sh4_files="tc-sh.c"
240 if ( 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
248 else
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
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
265 fi
266
267 v850e_files="tc-v850.c tc-v850.h"
268 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
269 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
270 for i in $v850e_files ; do
271 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
272 if [ -n "${verbose}" ] ; then
273 echo Keeping v850e and v850eq stuff in $i
274 fi
275 fi
276 done
277 else
278 for i in $v850e_files ; do
279 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
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
294 fi
295 else
296 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
297 for i in $v850e_files ; do
298 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
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
306 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
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
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
318 mv new $i
319 fi
320 if test -r $i && (grep sanitize-v850eq $i > /dev/null) ; then
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
333 fi
334 done
335 fi
336 fi
337
338 # End of file.
This page took 0.036751 seconds and 4 git commands to generate.