1 # .Sanitize for devo/gas/testsuite/gas/mips.
3 # Each directory to survive it's 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
19 # All files listed between the "Things-to-keep:" line and the
20 # "Files-to-sed:" line will be kept. All other files will be removed.
21 # Directories listed in this section will have their own Sanitize
22 # called. Directories not listed will be removed in their entirety
120 tx19_files="mips.exp"
121 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
122 for i in $tx19_files ; do
123 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping tx19 stuff in $i
130 for i in $tx19_files ; do
131 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"tx19\" from $i...
136 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...
148 tx49_files="mips.exp"
149 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
150 for i in $tx49_files ; do
151 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
152 if [ -n "${verbose}" ] ; then
153 echo Keeping tx49 stuff in $i
158 for i in $tx49_files ; do
159 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
160 if [ -n "${verbose}" ] ; then
161 echo Removing traces of \"tx49\" from $i...
164 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
165 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
166 if [ -n "${verbose}" ] ; then
167 echo Caching $i in .Recover...