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
53 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
54 keep_these_too="${m32rx_files} ${keep_these_too}"
56 lose_these_too="${m32rx_files} ${lose_these_too}"
172 m32rx_files="allinsn.exp misc.exp testutils.inc"
173 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
174 for i in $m32rx_files ; do
175 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
176 if [ -n "${verbose}" ] ; then
177 echo Keeping m32rx stuff in $i
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 Removing traces of \"m32rx\" from $i...
188 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
189 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
190 if [ -n "${verbose}" ] ; then
191 echo Caching $i in .Recover...
198 # Remove m32rx from `mach'.
200 if [ -n "${verbose}" ] ; then
201 echo Removing traces of \"m32rx\" from $i...
204 sed -e 's/m32rx//' < $i > new
205 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
206 if [ -n "${verbose}" ] ; then
207 echo Caching $i in .Recover...