+keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
+ bfd binutils byacc cvs deja-gnu dejagnu diff dosrel dvips emacs emacs19
+ examples expect fileutils flex
+ gas gcc gdb gdbm gdbtest glob gprof grep grez groff
+ include install.sh ispell
+ ld libg++ libgcc libgloss libiberty libio librx libstdc++
+ m4 make mmalloc move-if-change newlib opcodes
+ pagas patch prms rcs readline sed send-pr shellutils sim textutils
+ texinfo tgas utils uudecode wdiff xiberty
+ configure.bat makeall.bat winsup
+ guile perl
+ mpw-README mpw-configure mpw-config.in mpw-build.in"
+
+lose_these_too="${lose_these_too} testsuite"
+
+cygnus_files="release release-info build-all.mk test-build.mk COPYING.NEWLIB"
+
+if ( echo $* | grep keep\-cygnus > /dev/null) ; then
+ keep_these_too="${keep_these_too} ${cygnus_files}"
+else
+ lose_these_too="${lose_these_too} ${cygnus_files}"
+fi
+
+gdbtk_files="tcl tk"
+
+if ( echo $* | grep lose\-gdbtk > /dev/null) ; then
+ lose_these_too="${lose_these_too} ${gdbtk_files}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${gdbtk_files}
+ fi
+else
+ keep_these_too="${keep_these_too} ${gdbtk_files}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${gdbtk_files}
+ fi
+fi
+
+# This is for newlib net releases.
+newlib_file="COPYING.NEWLIB"
+
+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
+ true; # Let keep-cygnus handle it.
+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
+# check out just gets obnoxious.
+
+list="`(for i in ${keep_these_too}; do echo $i ; done) | sort -u`"
+keep_these_too=
+
+for file in $list ; do
+ if [ -r $file ] || [ -d $file ] ; then
+ keep_these_too="${keep_these_too} $file"
+ fi
+done
+
+list="`(for i in ${lose_these_too}; do echo $i ; done) | sort -u` "
+lose_these_too=
+
+for file in $list ; do
+ if [ -r $file ] || [ -d $file ] ; then
+ lose_these_too="${lose_these_too} $file"
+ fi
+done
+