* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
[binutils-gdb.git] / .Sanitize
index f343ef825c47d8e40961bbe3e04559a9c6d810e5..5de585dd1f59e7b6f960748ab2076990b318a75d 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -17,10 +17,14 @@ Do-first:
 
 if ( echo $* | grep keep\-chill > /dev/null ) ; then
        keep_these_too="chillrt test-chill"
+else
+       lose_these_too="chillrt test-chill"
 fi
 
 if ( echo $* | grep keep\-cygnus > /dev/null) ; then
        keep_these_too="${keep_these_too} release release-info"
+else
+       lose_these_too="${lose_these_too} release release-info"
 fi
 
 
@@ -76,6 +80,7 @@ ld
 libg++
 libgcc
 libiberty
+libio
 m4
 make
 mmalloc
@@ -102,7 +107,6 @@ xiberty
 
 Things-to-lose:
 
-
 # The lines between the "Do-last:" line and the end of the file
 # are executed as a /bin/sh shell script after everything else is
 # done.
@@ -178,6 +182,32 @@ else
        done
 fi
 
+if ( echo $* | grep for\-fsf > /dev/null ) ; then
+       if [ -n "${verbose}" ]; then
+               echo Cleaning up configure.in for FSF release...
+       fi
+       sed '/start\-sanitize\-for\-fsf/,/end\-sanitize\-for\-fsf/d' < configure.in > new
+       if [ -n "${safe}" -a ! -f .Recover/$i ]; then
+               if [ -n "${verbose}" ]; then
+                       echo Caching configure.in in .Recover...
+               fi
+               mv configure.in .Recover
+       fi
+       mv new configure.in
+else
+       if [ -n "${verbose}" ]; then
+               echo Removing sanitize-for-fsf markers from configure.in...
+       fi
+       grep -v sanitize-for-fsf < configure.in > new
+       if [ -n "${safe}" ]; then
+               if [ -n "${verbose}" ]; then
+                       echo Caching configure.in in .Recover...
+               fi
+               mv configure.in .Recover
+       fi
+       mv new configure.in
+fi
+
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then
                echo '***' Some mentions of Sanitize are still left in $i! 1>&2