aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/.Sanitize
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-02 03:49:55 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-02 03:49:55 +0000
commit4de6b5d3610276befcc3af6aad5975638d836c77 (patch)
treea399736fe1430e2eb67441a5b6eec627b39da7d1 /sim/sh/.Sanitize
parent52352d38d6218b8c7dcc2b59e88820f702c89fd1 (diff)
downloadgdb-4de6b5d3610276befcc3af6aad5975638d836c77.zip
gdb-4de6b5d3610276befcc3af6aad5975638d836c77.tar.gz
gdb-4de6b5d3610276befcc3af6aad5975638d836c77.tar.bz2
Merge SH4 branch simulator in to devo.
Diffstat (limited to 'sim/sh/.Sanitize')
-rw-r--r--sim/sh/.Sanitize30
1 files changed, 30 insertions, 0 deletions
diff --git a/sim/sh/.Sanitize b/sim/sh/.Sanitize
index 0c6c23f..6b3a315 100644
--- a/sim/sh/.Sanitize
+++ b/sim/sh/.Sanitize
@@ -40,4 +40,34 @@ Things-to-lose:
Do-last:
+sh4_files="ChangeLog interp.c gencode.c"
+
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sh4 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sh4\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
+
# End of file.