1 # .Sanitize for devo/sim/testsuite/sim/m32r
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
57 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
58 keep_these_too="${m32rx_files} ${keep_these_too}"
60 lose_these_too="${m32rx_files} ${lose_these_too}"
180 m32rx_files="allinsn.exp misc.exp testutils.inc"
181 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
182 for i in $m32rx_files ; do
183 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
184 if [ -n "${verbose}" ] ; then
185 echo Keeping m32rx stuff in $i
190 for i in $m32rx_files ; do
191 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
192 if [ -n "${verbose}" ] ; then
193 echo Removing traces of \"m32rx\" from $i...
196 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
197 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
198 if [ -n "${verbose}" ] ; then
199 echo Caching $i in .Recover...
206 # Remove m32rx from `mach'.
208 if [ -n "${verbose}" ] ; then
209 echo Removing traces of \"m32rx\" from $i...
212 sed -e 's/m32rx//' < $i > new
213 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
214 if [ -n "${verbose}" ] ; then
215 echo Caching $i in .Recover...