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
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
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}"
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
+ fi
+ done
+fi
+
vr5400_files="ChangeLog config.sub"
if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then