]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/.Sanitize
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / mips / .Sanitize
CommitLineData
c21ee46b
JSC
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
18Do-first:
19
db48d821
FL
20vr4xxx_files="vr4run.c"
21if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
22 keep_these_too="${vr4xxx_files} ${keep_these_too}"
23else
24 lose_these_too="${vr4xxx_files} ${lose_these_too}"
25fi
26
16bd5d6e
AC
27r5900_files="r5900.igen"
28if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
29 keep_these_too="${r5900_files} ${keep_these_too}"
30else
31 lose_these_too="${r5900_files} ${lose_these_too}"
32fi
33
9c577d9a 34sky_files="ChangeLog.sky sky-device.c sky-device.h sky-dma.c sky-dma.h sky-bits.h"
aea481da 35sky_files="$sky_files sky-engine.c sky-gpuif.c sky-gpuif.h"
4b61e107 36sky_files="$sky_files sky-gs.c sky-gs.h"
a4377bf7 37sky_files="$sky_files sky-hardware.c sky-hardware.h sky-gdb.c sky-gdb.h"
fda83b67 38sky_files="$sky_files sky-libvpe.c sky-libvpe.h sky-vif.c sky-vif.h"
997d07bb 39sky_files="$sky_files sky-vpe.h sky-vu.h sky-vu.c sky-vudis.h sky-vudis.c"
fda83b67 40sky_files="$sky_files sky-console.h sky-console.c sky-psio.h sky-psio.c"
ac137dc8
IC
41sky_files="$sky_files sky-interact.h sky-interact.c"
42sky_files="$sky_files sky-indebug.h sky-indebug.c"
aea481da
DE
43if ( echo $* | grep keep\-sky > /dev/null ) ; then
44 keep_these_too="${sky_files} ${keep_these_too}"
45else
46 lose_these_too="${sky_files} ${lose_these_too}"
47fi
48
3d759c53
KR
49cygnus_files="mdmx.igen"
50if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
51 keep_these_too="${cygnus_files} ${keep_these_too}"
16bd5d6e 52else
3d759c53 53 lose_these_too="${cygnus_files} ${lose_these_too}"
16bd5d6e
AC
54fi
55
c21ee46b
JSC
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
62Things-to-keep:
63
64ChangeLog
65Makefile.in
5da9ce07 66acconfig.h
c21ee46b
JSC
67config.in
68configure
69configure.in
0e854a20
FCE
70dv-tx3904cpu.c
71dv-tx3904irc.c
72dv-tx3904tmr.c
73dv-tx3904sio.c
c21ee46b 74interp.c
8764538f 75sim-main.c
2e61a3ad 76sim-main.h
e3d12c65 77tconfig.in
90ad43b2 78mips.igen
16bd5d6e 79m16.igen
8c9ee21e
AC
80m16.dc
81m16run.c
90ad43b2 82mips.dc
8764538f 83tx.igen
e1b20d30 84vr.igen
c21ee46b
JSC
85
86Things-to-lose:
87
c21ee46b
JSC
88Do-last:
89
69d5a566 90r5900_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc m16.igen r5900.igen tx.igen"
276c2d7d
GRK
91
92if ( 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
100else
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
f3534b68
DE
113 fi
114 mv new $i
115 fi
116 done
117fi
118
119
120sky_files="ChangeLog Makefile.in configure configure.in"
121
122if ( 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
130else
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
276c2d7d
GRK
143 fi
144 mv new $i
145 fi
146 done
147fi
148
149
01b9cd49 150tx19_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc m16.igen"
318b499d
GRK
151
152if ( 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
160else
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
177fi
178
179
6205f379
GRK
180tx49_files="ChangeLog configure.in configure gencode.c"
181
182if ( 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
190else
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
207fi
208
209
3d759c53 210cygnus_files="ChangeLog configure configure.in sim-main.h interp.c gencode.c mips.igen mips.dc mdmx.igen vr.igen"
90ad43b2 211
3d759c53
KR
212if ( 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
90ad43b2 215 if [ -n "${verbose}" ] ; then
3d759c53 216 echo Keeping cygnus stuff in $i
90ad43b2
AC
217 fi
218 fi
219 done
220else
221 for i in * ; do
3d759c53 222 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
90ad43b2 223 if [ -n "${verbose}" ] ; then
3d759c53 224 echo Removing traces of \"cygnus\" from $i...
90ad43b2
AC
225 fi
226 cp $i new
3d759c53 227 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
90ad43b2
AC
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
237fi
238
60f9cd07 239vr4320_files="ChangeLog Makefile.in configure configure.in mips.igen vr.igen"
ca8c3847
GRK
240
241if ( 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
249else
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
266fi
267
90ad43b2 268
f14397f0
GRK
269vr4xxx_files="ChangeLog Makefile.in configure configure.in mips.igen vr.igen"
270
271if ( 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
279else
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
296fi
297
298
46eb9e5a
GRK
299branchbug4011_files="interp.c mips.igen sim-main.h ChangeLog"
300if ( 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
308else
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
325fi
90ad43b2
AC
326
327never_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
01b9cd49
AC
347for 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
351done
c21ee46b
JSC
352
353# End of file.