aboutsummaryrefslogtreecommitdiff
path: root/.Sanitize
diff options
context:
space:
mode:
authorAngela Marie Thomas <angela@cygnus>1998-02-27 10:26:19 +0000
committerAngela Marie Thomas <angela@cygnus>1998-02-27 10:26:19 +0000
commitf8b550eb265be2189e5c70a261be30a284ba3273 (patch)
treef51b0d807b868be7f6e647aa1cc043c049dce6a0 /.Sanitize
parent8ca85ce00a6d7d9d926e3ec174347f9e0802eaa1 (diff)
downloadgdb-f8b550eb265be2189e5c70a261be30a284ba3273.zip
gdb-f8b550eb265be2189e5c70a261be30a284ba3273.tar.gz
gdb-f8b550eb265be2189e5c70a261be30a284ba3273.tar.bz2
fix
Diffstat (limited to '.Sanitize')
-rw-r--r--.Sanitize38
1 files changed, 38 insertions, 0 deletions
diff --git a/.Sanitize b/.Sanitize
index f170bb4..db3b4dd 100644
--- a/.Sanitize
+++ b/.Sanitize
@@ -636,6 +636,44 @@ else
done
fi
+kcygnus_files="configure"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+ for i in $kcygnus_files ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping Cygnus stuff in $i
+ fi
+ cp $i new
+ grep -v sanitize-cygnus $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
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"cygnus\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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
+
+
# Do this check LAST!
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then