aboutsummaryrefslogtreecommitdiff
path: root/sim/.Sanitize
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-08-02 00:22:58 +0000
committerMartin Hunt <hunt@redhat.com>1996-08-02 00:22:58 +0000
commit745a0437db96f667ba50ad4aaaaff8907a2ba67c (patch)
tree00f45f25fc04ae55d359cdba4cc4ce5ba37285ac /sim/.Sanitize
parentc1ebd1ce1799a6068f94039ec711a135223259e8 (diff)
downloadgdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.zip
gdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.tar.gz
gdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.tar.bz2
Thu Aug 1 17:08:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* configure.in (d10v-*-*): Added D10V simulator.
Diffstat (limited to 'sim/.Sanitize')
-rw-r--r--sim/.Sanitize40
1 files changed, 40 insertions, 0 deletions
diff --git a/sim/.Sanitize b/sim/.Sanitize
index e76cdd5..ff0bd92 100644
--- a/sim/.Sanitize
+++ b/sim/.Sanitize
@@ -15,6 +15,13 @@
Do-first:
+d10v_files="d10v"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ keep_these_too="${d10v_files} ${keep_these_too}"
+else
+ lose_these_too="${d10v_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
@@ -42,4 +49,37 @@ Things-to-lose:
Do-last:
+d10v_files="d10v"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping d10v stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"d10v\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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
+ fi
+done
+
# End of file.