1 # .Sanitize for devo/gdb/config/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 vr4111_files="tm-vr4xxx.h vr4xxx.mt"
20 if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
21 keep_these_too="${vr4111_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${vr4111_files}
26 lose_these_too="${vr4111_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${vr4111_files}
32 tx19_files="tm-tx19.h tm-tx19l.h tx19.mt tx19l.mt"
34 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
35 keep_these_too="${tx19_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${tx19_files}
40 lose_these_too="${tx19_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${tx19_files}
46 tx49_files="tm-tx49.h tm-tx49el.h tx49.mt tx49el.mt"
48 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
49 keep_these_too="${tx49_files} ${keep_these_too}"
50 if [ -n "${verbose}" ] ; then
51 echo Keeping ${tx49_files}
54 lose_these_too="${tx49_files} ${lose_these_too}"
55 if [ -n "${verbose}" ] ; then
56 echo Deleting ${tx49_files}
60 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
61 keep_these_too="tm-r5900.h r5900.mt ${keep_these_too}"
63 lose_these_too="tm-r5900.h r5900.mt ${lose_these_too}"
66 if ( echo $* | grep keep\-sky > /dev/null ) ; then
67 keep_these_too="tm-txvu.h txvu.mt ${keep_these_too}"
69 lose_these_too="tm-txvu.h txvu.mt ${lose_these_too}"
72 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
73 keep_these_too="tm-vr4320.h vr4320.mt ${keep_these_too}"
75 lose_these_too="tm-vr4320.h vr4320.mt ${lose_these_too}"
78 # All files listed between the "Things-to-keep:" line and the
79 # "Files-to-sed:" line will be kept. All other files will be removed.
80 # Directories listed in this section will have their own Sanitize
81 # called. Directories not listed will be removed in their entirety