Change type of sys_errlist[] to match definition in /usr/include/errno.h
[deliverable/binutils-gdb.git] / .Sanitize
index 38732e81b6e6c4e34002d244881ee5cbe4e89454..ef2054471f25198beaef99ee5916e73baaec77b5 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -46,7 +46,7 @@
 
 Do-first:
 
-keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
+keep_these_too="${keep_these_too} .cvsignore autoconf automake
        apache bash 
        bfd binutils bison byacc cvs deja-gnu dejagnu diff dosrel dvips
        emacs emacs19 examples expect fileutils findutils flex
@@ -54,7 +54,7 @@ keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
        guile gzip
        include inet install-sh ispell
        ld less libg++ libgcc libgloss libiberty libio
-       librx libstdc++
+       librx libstdc++ libtool
        m4 make mkinstalldirs mmalloc move-if-change newlib ncurses opcodes
        pagas patch perl prms
        rcs readline sed send-pr shellutils sim tar textutils time
@@ -65,7 +65,7 @@ keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
 
 lose_these_too="${lose_these_too} testsuite"
 
-cygnus_files="release release-info build-all.mk test-build.mk COPYING.NEWLIB"
+cygnus_files="release release-info build-all.mk test-build.mk CYGNUS COPYING.NEWLIB"
 
 if ( echo $* | grep keep\-cygnus > /dev/null) ; then
        keep_these_too="${keep_these_too} ${cygnus_files}"
@@ -314,6 +314,35 @@ else
        done
 fi
 
+vr4320_files="ChangeLog config.sub"
+
+if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
+       for i in $vr4320_files ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr4320 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr4320\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/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
+
 tx19_files="ChangeLog config.sub"
 
 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
@@ -430,35 +459,6 @@ else
        done
 fi
 
-vr4111_files="ChangeLog config.sub"
-
-if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
-       for i in $vr4111_files ; do
-               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping vr4111 stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in * ; do
-               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"vr4111\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/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
-
 if ( echo $* | grep keep\-ide > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
@@ -487,7 +487,9 @@ else
 fi
 
 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
-       echo Catering to RMS by removing traces of \"gdbtk\"...
+       if [ -n "${verbose}" ] ; then
+               echo Catering to RMS by removing traces of \"gdbtk\"...
+       fi
        for i in * ; do
                if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
@@ -496,7 +498,9 @@ if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
                        cp $i new
                        sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               echo Caching $i in .Recover...
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
                                mv $i .Recover
                        fi
                        mv new $i
@@ -512,7 +516,9 @@ if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
        fi
        mv new Makefile.in
 else
-       echo Leaving \"gdbtk\" in the sources...
+       if [ -n "${verbose}" ] ; then
+               echo Leaving \"gdbtk\" in the sources...
+       fi
        for i in * ; do
                if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
@@ -521,7 +527,51 @@ else
                        cp $i new
                        sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
-                               echo Caching $i in .Recover...
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+if ( echo $* | grep lose\-mswin > /dev/null ) ; then
+       if [ -n "${verbose}" ] ; then
+               echo Removing traces of \"mswin\"...
+       fi
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"mswin\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-mswin/,/end-\sanitize\-mswin/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
+else
+       if [ -n "${verbose}" ] ; then
+               echo Leaving \"mswin\" in the sources...
+       fi
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping \"mswin\" stuff in $i, but editing out sanitize lines...
+                       fi
+                       cp $i new
+                       sed -e '/start\-sanitize\-mswin/d' -e '/end\-sanitize\-mswin/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
@@ -586,6 +636,44 @@ else
        done
 fi
 
+kcygnus_files="configure"
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
+       for i in $kcygnus_files ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping Cygnus stuff in $i
+                       fi
+                       cp $i new
+                       grep -v sanitize-cygnus $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
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"cygnus\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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
This page took 0.025284 seconds and 4 git commands to generate.