DisplayDWARF2 basic type encodings.
[deliverable/binutils-gdb.git] / sim / mips / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 vr4xxx_files="vr4run.c"
21 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
22 keep_these_too="${vr4xxx_files} ${keep_these_too}"
23 else
24 lose_these_too="${vr4xxx_files} ${lose_these_too}"
25 fi
26
27 r5900_files="r5900.igen"
28 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
29 keep_these_too="${r5900_files} ${keep_these_too}"
30 else
31 lose_these_too="${r5900_files} ${lose_these_too}"
32 fi
33
34 sky_files="ChangeLog.sky sky-device.c sky-device.h sky-dma.c sky-dma.h sky-bits.h"
35 sky_files="$sky_files sky-engine.c sky-gpuif.c sky-gpuif.h"
36 sky_files="$sky_files sky-gs.c sky-gs.h"
37 sky_files="$sky_files sky-hardware.c sky-hardware.h sky-gdb.c sky-gdb.h"
38 sky_files="$sky_files sky-libvpe.c sky-libvpe.h sky-vif.c sky-vif.h"
39 sky_files="$sky_files sky-vpe.h sky-vu.h sky-vu.c sky-vudis.h sky-vudis.c"
40 sky_files="$sky_files sky-console.h sky-console.c sky-psio.h sky-psio.c"
41 sky_files="$sky_files sky-interact.h sky-interact.c"
42 sky_files="$sky_files sky-indebug.h sky-indebug.c"
43 if ( echo $* | grep keep\-sky > /dev/null ) ; then
44 keep_these_too="${sky_files} ${keep_these_too}"
45 else
46 lose_these_too="${sky_files} ${lose_these_too}"
47 fi
48
49 cygnus_files="mdmx.igen"
50 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
51 keep_these_too="${cygnus_files} ${keep_these_too}"
52 else
53 lose_these_too="${cygnus_files} ${lose_these_too}"
54 fi
55
56 # All files listed between the "Things-to-keep:" line and the
57 # "Files-to-sed:" line will be kept. All other files will be removed.
58 # Directories listed in this section will have their own Sanitize
59 # called. Directories not listed will be removed in their entirety
60 # with rm -rf.
61
62 Things-to-keep:
63
64 ChangeLog
65 Makefile.in
66 acconfig.h
67 config.in
68 configure
69 configure.in
70 dv-tx3904cpu.c
71 dv-tx3904irc.c
72 dv-tx3904tmr.c
73 dv-tx3904sio.c
74 interp.c
75 sim-main.c
76 sim-main.h
77 tconfig.in
78 mips.igen
79 m16.igen
80 m16.dc
81 m16run.c
82 mips.dc
83 tx.igen
84 vr.igen
85
86 Things-to-lose:
87
88 Do-last:
89
90 r5900_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc m16.igen r5900.igen tx.igen"
91
92 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93 for i in $r5900_files ; do
94 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping r5900 stuff in $i
97 fi
98 fi
99 done
100 else
101 for i in * ; do
102 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"r5900\" from $i...
105 fi
106 cp $i new
107 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
111 fi
112 mv $i .Recover
113 fi
114 mv new $i
115 fi
116 done
117 fi
118
119
120 sky_files="ChangeLog Makefile.in configure configure.in"
121
122 if ( echo $* | grep keep\-sky > /dev/null ) ; then
123 for i in $sky_files ; do
124 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Keeping sky stuff in $i
127 fi
128 fi
129 done
130 else
131 for i in * ; do
132 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Removing traces of \"sky\" from $i...
135 fi
136 cp $i new
137 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 if [ -n "${verbose}" ] ; then
140 echo Caching $i in .Recover...
141 fi
142 mv $i .Recover
143 fi
144 mv new $i
145 fi
146 done
147 fi
148
149
150 tx19_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc m16.igen"
151
152 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
153 for i in $tx19_files ; do
154 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
155 if [ -n "${verbose}" ] ; then
156 echo Keeping tx19 stuff in $i
157 fi
158 fi
159 done
160 else
161 for i in * ; do
162 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
163 if [ -n "${verbose}" ] ; then
164 echo Removing traces of \"tx19\" from $i...
165 fi
166 cp $i new
167 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
168 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
169 if [ -n "${verbose}" ] ; then
170 echo Caching $i in .Recover...
171 fi
172 mv $i .Recover
173 fi
174 mv new $i
175 fi
176 done
177 fi
178
179
180 tx49_files="ChangeLog configure.in configure gencode.c"
181
182 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
183 for i in $tx49_files ; do
184 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
185 if [ -n "${verbose}" ] ; then
186 echo Keeping tx49 stuff in $i
187 fi
188 fi
189 done
190 else
191 for i in * ; do
192 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
193 if [ -n "${verbose}" ] ; then
194 echo Removing traces of \"tx49\" from $i...
195 fi
196 cp $i new
197 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
198 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
199 if [ -n "${verbose}" ] ; then
200 echo Caching $i in .Recover...
201 fi
202 mv $i .Recover
203 fi
204 mv new $i
205 fi
206 done
207 fi
208
209
210 cygnus_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc mdmx.igen vr.igen"
211
212 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
213 for i in $cygnus_files ; do
214 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
215 if [ -n "${verbose}" ] ; then
216 echo Keeping cygnus stuff in $i
217 fi
218 fi
219 done
220 else
221 for i in * ; do
222 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
223 if [ -n "${verbose}" ] ; then
224 echo Removing traces of \"cygnus\" from $i...
225 fi
226 cp $i new
227 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
228 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
229 if [ -n "${verbose}" ] ; then
230 echo Caching $i in .Recover...
231 fi
232 mv $i .Recover
233 fi
234 mv new $i
235 fi
236 done
237 fi
238
239 vr4320_files="ChangeLog Makefile.in configure configure.in mips.igen vr.igen"
240
241 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
242 for i in $vr4320_files ; do
243 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
244 if [ -n "${verbose}" ] ; then
245 echo Keeping vr4320 stuff in $i
246 fi
247 fi
248 done
249 else
250 for i in * ; do
251 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
252 if [ -n "${verbose}" ] ; then
253 echo Removing traces of \"vr4320\" from $i...
254 fi
255 cp $i new
256 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
257 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
258 if [ -n "${verbose}" ] ; then
259 echo Caching $i in .Recover...
260 fi
261 mv $i .Recover
262 fi
263 mv new $i
264 fi
265 done
266 fi
267
268
269 vr4xxx_files="ChangeLog Makefile.in configure configure.in mips.igen vr.igen"
270
271 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
272 for i in $vr4xxx_files ; do
273 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
274 if [ -n "${verbose}" ] ; then
275 echo Keeping vr4xxx stuff in $i
276 fi
277 fi
278 done
279 else
280 for i in * ; do
281 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
282 if [ -n "${verbose}" ] ; then
283 echo Removing traces of \"vr4xxx\" from $i...
284 fi
285 cp $i new
286 sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/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
296 fi
297
298
299 branchbug4011_files="interp.c mips.igen sim-main.h ChangeLog"
300 if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
301 for i in $branchbug4011_files ; do
302 if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Keeping branchbug4011 stuff in $i
305 fi
306 fi
307 done
308 else
309 for i in $branchbug4011_files ; do
310 if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
311 if [ -n "${verbose}" ] ; then
312 echo Removing traces of \"branchbug4011\" from $i...
313 fi
314 cp $i new
315 sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/d' < $i > new
316 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
317 if [ -n "${verbose}" ] ; then
318 echo Caching $i in .Recover...
319 fi
320 mv $i .Recover
321 fi
322 mv new $i
323 fi
324 done
325 fi
326
327 never_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"
328
329 for i in * ; do
330 if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
331 if [ -n "${verbose}" ] ; then
332 echo Removing traces of \"cygnus-never\" from $i...
333 fi
334 cp $i new
335 sed '/start\-sanitize\-cygnus\-never/,/end-\sanitize\-cygnus\-never/d' < $i > new
336 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
337 if [ -n "${verbose}" ] ; then
338 echo Caching $i in .Recover...
339 fi
340 mv $i .Recover
341 fi
342 mv new $i
343 fi
344 done
345
346
347 for i in * ; do
348 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
349 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
350 fi
351 done
352
353 # End of file.
This page took 0.038561 seconds and 4 git commands to generate.