Clean up handling of COPYING.NEWLIB.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 25 Jul 1995 22:05:00 +0000 (22:05 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 25 Jul 1995 22:05:00 +0000 (22:05 +0000)
.Sanitize

index f28260731f42d4705761c238da969f97b79f7f02..0004600097aec04f38654be8a3a3e4648e2622fa 100644 (file)
--- a/.Sanitize
+++ b/.Sanitize
@@ -81,12 +81,15 @@ else
 fi
 
 # This is for newlib net releases.
-newlib_files="COPYING.NEWLIB"
+newlib_file="COPYING.NEWLIB"
 
-if ( echo $* | grep keep\-newlib > /dev/null) ; then
-       keep_these_too="${keep_these_too} ${newlib_files}"
+if (echo $* | grep keep\-newlib > /dev/null) ; then
+       if (echo $* | grep -v keep\-cygnus > /dev/null) ; then
+               keep_these_too="${keep_these_too} ${newlib_file}"
+               lose_these_too="`echo ${lose_these_too} | sed -e s/${newlib_file}//`"
+       fi
 else
-       lose_these_too="${lose_these_too} ${newlib_files}"
+       true; # Let keep-cygnus handle it.
 fi
 
 # This top-level directory is special.  We often check out only subsets