1 # .Sanitize for devo/gas/testsuite/gas/mips
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.
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
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 directory.
18 vr5400_losers="vr5400.s vr5400.d"
19 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
20 keep_these_too="$keep_these_too $vr5400_losers"
21 if [ -n "${verbose}" ] ; then
22 for i in $vr5400_losers ; do
27 for i in $vr5400_losers ; do
28 if [ -n "${verbose}" ] ; then
31 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
32 if [ -n "${verbose}" ] ; then
33 echo Caching $i in .Recover...
42 r5900_losers="r5900.s r5900.d vu0.s vu0.d break5900.s break5900.d"
43 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
44 keep_these_too="$keep_these_too $r5900_losers"
45 if [ -n "${verbose}" ] ; then
46 for i in $r5900_losers ; do
51 for i in $r5900_losers ; do
52 if [ -n "${verbose}" ] ; then
55 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
56 if [ -n "${verbose}" ] ; then
57 echo Caching $i in .Recover...
66 # All files listed between the "Things-to-keep:" line and the
67 # "Do-last:" line will be kept. All other files will be removed.
68 # Directories listed in this section will have their own Sanitize
69 # called. Directories not listed will be removed in their entirety
181 # The lines between the "Do-last:" line and the end of the file
182 # are executed as a /bin/sh shell script after everything else is
187 tx19_files="mips.exp"
188 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
189 for i in $tx19_files ; do
190 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
191 if [ -n "${verbose}" ] ; then
192 echo Keeping tx19 stuff in $i
197 for i in $tx19_files ; do
198 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
199 if [ -n "${verbose}" ] ; then
200 echo Removing traces of \"tx19\" from $i...
203 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
204 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
205 if [ -n "${verbose}" ] ; then
206 echo Caching $i in .Recover...
215 tx49_files="mips.exp"
216 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
217 for i in $tx49_files ; do
218 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
219 if [ -n "${verbose}" ] ; then
220 echo Keeping tx49 stuff in $i
225 for i in $tx49_files ; do
226 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
227 if [ -n "${verbose}" ] ; then
228 echo Removing traces of \"tx49\" from $i...
231 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
232 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
233 if [ -n "${verbose}" ] ; then
234 echo Caching $i in .Recover...
243 vr4320_files="mips.exp"
244 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
245 for i in $vr4320_files ; do
246 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
247 if [ -n "${verbose}" ] ; then
248 echo Keeping vr4320 stuff in $i
253 for i in $vr4320_files ; do
254 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
255 if [ -n "${verbose}" ] ; then
256 echo Removing traces of \"vr4320\" from $i...
259 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
260 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
261 if [ -n "${verbose}" ] ; then
262 echo Caching $i in .Recover...
271 vr5400_files="mips.exp"
272 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
273 for i in $vr5400_files ; do
274 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
275 if [ -n "${verbose}" ] ; then
276 echo Keeping vr5400 stuff in $i
281 for i in $vr5400_files ; do
282 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
283 if [ -n "${verbose}" ] ; then
284 echo Removing traces of \"vr5400\" from $i...
287 sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
288 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
289 if [ -n "${verbose}" ] ; then
290 echo Caching $i in .Recover...
299 r5900_files="mips.exp"
300 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
301 for i in $r5900_files ; do
302 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
303 if [ -n "${verbose}" ] ; then
304 echo Keeping r5900 stuff in $i
309 for i in $r5900_files ; do
310 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
311 if [ -n "${verbose}" ] ; then
312 echo Removing traces of \"r5900\" from $i...
315 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
316 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
317 if [ -n "${verbose}" ] ; then
318 echo Caching $i in .Recover...