fix
authorAngela Marie Thomas <angela@cygnus>
Fri, 27 Feb 1998 10:26:19 +0000 (10:26 +0000)
committerAngela Marie Thomas <angela@cygnus>
Fri, 27 Feb 1998 10:26:19 +0000 (10:26 +0000)
.Sanitize

index f170bb474b3923591d2433ea4d2829e7882ae441..db3b4ddf8308b1ca399a1efb0b6b4dc383d5f26e 100644 (file)
--- 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