These changes cut the size of libbfd.a on a Sun4 by about 11%.
[deliverable/binutils-gdb.git] / .Sanitize
index f4d938fdba06c9ff00556303b86f44f1ead2a115..ce7c344fdaaf4ca8f138b8c902658a90e1d99425 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
 
 Do-first:
 
+if ( echo $* | grep keep\-chill > /dev/null ) ; then
+       keep_these_too="chillrt"
+fi
+
 # All files listed between the "Things-to-keep:" line and the
 # "Do-last:" line will be kept.  All other files will be removed.
 # Directories listed in this section will have their own Sanitize
@@ -58,6 +62,7 @@ glob
 gprof
 grep
 groff
+h8300sim
 include
 ispell
 ld
@@ -117,6 +122,31 @@ else
        done
 fi
 
+echo Thawing away the \"chill\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-chill > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
+                       echo Keeping chill stuff in $i
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
+                       echo Thawing the \"chill\" out of $i...
+                       cp $i new
+                       sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               echo Caching $i in .Recover...
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+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!
This page took 0.029285 seconds and 4 git commands to generate.