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 cd40980..73213d4 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 21a4002..dae1f7c 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