--- gforth/testdist 2003/03/02 21:25:20 1.12 +++ gforth/testdist 2003/08/25 16:14:25 1.16 @@ -4,7 +4,9 @@ #gforth-version.tar.gz must be in the working directory MACHINE=`hostname` GFORTH=`basename $1 .tar.gz` -DIR=`pwd` +DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd` +PATHDIR=`pwd` +test -z "$CC" && CC=cc chmod -R +w $GFORTH rm -rf $GFORTH gunzip -cd $1 | tar xf - @@ -12,6 +14,7 @@ gunzip -cd $1 | tar xf - then echo building in build chmod -R a-w $GFORTH + rm -rf build mkdir build cd build ../$GFORTH/configure --prefix=$DIR/install @@ -28,9 +31,9 @@ make install && #make all-bench && chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 && cd ../$GFORTH/vmgen-ex && -PATH=$DIR/install/bin:$PATH make check GCC="cc -O" && +PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex && cd ../vmgen-ex2 && -PATH=$DIR/install/bin:$PATH make check GCC="cc -O" && +PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex && cd .. && cd .. && install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&