sanitization fix.
authorFelix Lee <flee@cygnus>
Fri, 18 Dec 1998 16:43:49 +0000 (16:43 +0000)
committerFelix Lee <flee@cygnus>
Fri, 18 Dec 1998 16:43:49 +0000 (16:43 +0000)
bfd/.Sanitize
gdb/testsuite/.Sanitize

index cd40980edbc8cd826979c30cb34c459339d46625..73213d44f3aa46c51bdaf7cabff69e4f1e94a5e0 100644 (file)
@@ -299,6 +299,24 @@ Things-to-lose:
 
 Do-last:
 
+never_files="ChangeLog"
+for i in $never_files ; do
+       if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
+               if [ -n "${verbose}" ] ; then
+                       echo Removing traces of \"cygnus-never\" from $i...
+               fi
+               cp $i new
+               sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/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
+
 am33_files="ChangeLog archures.c bfd-in2.h cpu-m10300.c elf-m10300.c"
 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
        for i in $am33_files ; do
index 21a4002864ed00f6b5026b4d162dc517eb09d058..dae1f7c3d0e3e1c92dcc5ee670b514972c8ed005 100644 (file)
@@ -64,6 +64,25 @@ Things-to-lose:
 
 Do-last:
 
+never_files="ChangeLog"
+for i in $never_files ; do
+        if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
+                if [ -n "${verbose}" ] ; then
+                        echo Removing traces of \"cygnus-never\" from $i...
+                fi
+                cp $i new
+                sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/
+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
+
 am33_files="ChangeLog"
 if ( echo $* | grep keep\-am33 > /dev/null ) ; then
        for i in $am33_files ; do