* Makefile.in: Remove -O from CXXFLAGS for consistency with CFLAGS,
[binutils-gdb.git] / .Sanitize
index 4c4534c259d9291e0d63a4b85bfabcd9afd599cd..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
 
 
@@ -70,11 +74,13 @@ gprof
 grep
 groff
 include
+install.sh
 ispell
 ld
 libg++
 libgcc
 libiberty
+libio
 m4
 make
 mmalloc
@@ -99,6 +105,8 @@ uudecode
 wdiff
 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.
@@ -174,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