aboutsummaryrefslogtreecommitdiff
path: root/ld/.Sanitize
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1993-02-26 18:53:13 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1993-02-26 18:53:13 +0000
commitd9c2980f647c08543c09455e7d196a687ab71323 (patch)
tree62c5e438ea96cb2a9cbe32bb01e420039f7dffdb /ld/.Sanitize
parent7f7b0a77db0a2ce72ce48742b1582a6ec7c33753 (diff)
downloadgdb-d9c2980f647c08543c09455e7d196a687ab71323.zip
gdb-d9c2980f647c08543c09455e7d196a687ab71323.tar.gz
gdb-d9c2980f647c08543c09455e7d196a687ab71323.tar.bz2
Added initial sparc-v9 support.
Diffstat (limited to 'ld/.Sanitize')
-rw-r--r--ld/.Sanitize32
1 files changed, 31 insertions, 1 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 16ccff8..f11aecd 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -17,6 +17,9 @@
Do-first:
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ keep_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.
@@ -127,11 +130,38 @@ z8ksim.sh
Do-last:
+echo Looking for signs of \"v9\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
+ echo Keeping v9 stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
+ echo Cleaning the \"v9\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/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
#
#
# $Log$
-# Revision 1.50 1993/02/13 10:15:14 zoo
+# Revision 1.51 1993/02/26 18:53:13 dje
+# Added initial sparc-v9 support.
+#
+# Revision 1.50 1993/02/13 10:15:14 zoo
# removing excess verbosity
#
# Revision 1.49 1993/02/03 17:11:08 ian