aboutsummaryrefslogtreecommitdiff
path: root/sim/.Sanitize
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-02-21 02:44:57 +0000
committerAndrew Cagney <cagney@redhat.com>1997-02-21 02:44:57 +0000
commit317df3b530276f2acbdf8950d1d9b76deb83753c (patch)
treefe887e2fa5119fb77bccc099897f069f73fa7525 /sim/.Sanitize
parent332cb5d9433f04e32d67b1d8aa6c4f6a5fd4f66f (diff)
downloadgdb-317df3b530276f2acbdf8950d1d9b76deb83753c.zip
gdb-317df3b530276f2acbdf8950d1d9b76deb83753c.tar.gz
gdb-317df3b530276f2acbdf8950d1d9b76deb83753c.tar.bz2
Add d30v simulator configuration but sanatize it out.
Diffstat (limited to 'sim/.Sanitize')
-rw-r--r--sim/.Sanitize36
1 files changed, 36 insertions, 0 deletions
diff --git a/sim/.Sanitize b/sim/.Sanitize
index 47b4fd5..b9b97ad 100644
--- a/sim/.Sanitize
+++ b/sim/.Sanitize
@@ -36,6 +36,13 @@ else
lose_these_too="${v850_files} ${lose_these_too}"
fi
+d30v_files="d30v igen"
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+ keep_these_too="${d30v_files} ${keep_these_too}"
+else
+ lose_these_too="${d30v_files} ${lose_these_too}"
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -121,6 +128,35 @@ else
fi
done
fi
+
+d30v_files="configure configure.in ChangeLog"
+if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+ for i in $d30v_files ; do
+ if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping d30v stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $d30v_files ; do
+ if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"d30v\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/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
+
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
echo '***' Some mentions of Sanitize are still left in $i! 1>&2