tweaks
[binutils-gdb.git] / .Sanitize
index 6cac558b34e869995f0d6599a2ba12178a368e5e..ce058bde4f2d65c6d823096dea0ea8649b3b61df 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -51,14 +51,15 @@ keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
        bfd binutils byacc cvs deja-gnu dejagnu diff dosrel dvips emacs emacs19
        examples expect fileutils findutils flex
        gas gawk gcc gdb gdbm gdbtest glob gprof grep grez groff guile gzip
-       include inet install.sh ispell
+       include inet install-sh ispell
        ld less libg++ libgcc libgloss libiberty libio librx libstdc++
-       m4 make mmalloc move-if-change newlib ncurses opcodes
+       m4 make mkinstalldirs mmalloc move-if-change newlib ncurses opcodes
        pagas patch perl prms
        rcs readline sed send-pr shellutils sim tar textutils time
        texinfo tgas utils uudecode wdiff xiberty
        configure.bat makeall.bat setup.com makefile.vms winsup
-       mpw-README mpw-configure mpw-config.in mpw-build.in mpw-install"
+       mpw-README mpw-configure mpw-config.in mpw-build.in mpw-install
+       ltconfig ltmain.sh missing"
 
 lose_these_too="${lose_these_too} testsuite"
 
@@ -70,7 +71,7 @@ else
        lose_these_too="${lose_these_too} ${cygnus_files}"
 fi
 
-gdbtk_files="tcl tk"
+gdbtk_files="tcl tk itcl tix"
 
 if ( echo $* | grep lose\-gdbtk > /dev/null) ; then
        lose_these_too="${lose_these_too} ${gdbtk_files}"
@@ -105,6 +106,15 @@ else
        keep_these_too="${keep_these_too} ${inet_files}"
 fi
 
+ide_files="itcl libide vmake"
+
+if (echo $* | grep keep\-ide > /dev/null); then
+       lose_these_too="${lose_these_too} ${ide_files}"
+       test -n "$verbose" && echo Keeping ${ide_files}
+else
+       keep_these_too="${keep_these_too} ${ide_files}"
+fi
+
 
 # This top-level directory is special.  We often check out only subsets
 # of this directory, and complaining about directories or files we didn't
@@ -271,7 +281,7 @@ else
 fi
 
 if [ -n "${verbose}" ] ; then
-       echo Processing \"m32r\"...
+       echo Processing \"v850\"...
 fi
 
 v850_files="ChangeLog config.sub configure.in"
@@ -404,6 +414,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-ide > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping ide stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"ide\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/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
+fi
+
 # Do this check LAST!
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then