aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/.Sanitize
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-11-24 05:33:47 +0000
committerSteve Chamberlain <sac@cygnus>1994-11-24 05:33:47 +0000
commitd2fd61a812e28231f53812a02934de33bc2eec2d (patch)
tree01d43cd6b68e386568ba8e2614dd5f0c466ee85c /sim/sh/.Sanitize
parent3f67e000289c164137514a6419c7cc75dd26c7d7 (diff)
downloadgdb-d2fd61a812e28231f53812a02934de33bc2eec2d.zip
gdb-d2fd61a812e28231f53812a02934de33bc2eec2d.tar.gz
gdb-d2fd61a812e28231f53812a02934de33bc2eec2d.tar.bz2
* interp.c ([wr][bwl]at): New functions.
(trap): Cope with both byte modes.
Diffstat (limited to 'sim/sh/.Sanitize')
-rw-r--r--sim/sh/.Sanitize23
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/sh/.Sanitize b/sim/sh/.Sanitize
index 3ad8665..989238d 100644
--- a/sim/sh/.Sanitize
+++ b/sim/sh/.Sanitize
@@ -39,4 +39,27 @@ Things-to-lose:
Do-last:
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-sh3 > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sh3 $i > /dev/null) ; then
+ echo Keeping SH3 stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sh3 $i > /dev/null) ; then
+ echo Cleaning the \"SH3\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-sh3/,/end-\sanitize\-sh3/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ echo Caching $i in .Recover...
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
# End of file.