| chmod -R +w $GFORTH |
chmod -R +w $GFORTH |
| rm -rf $GFORTH |
rm -rf $GFORTH |
| gunzip -cd $1 | tar xf - |
gunzip -cd $1 | tar xf - |
| if make --version|grep -q GNU |
(if make --version|grep -q GNU |
| then |
then |
| echo building in build |
echo building in build |
| chmod -R a-w $GFORTH |
chmod -R a-w $GFORTH |
| |
rm -rf build |
| mkdir build |
mkdir build |
| cd build |
cd build |
| ../$GFORTH/configure --prefix=$DIR/install |
../$GFORTH/configure --prefix=$DIR/install |
| echo building in $GFORTH |
echo building in $GFORTH |
| cd $GFORTH |
cd $GFORTH |
| ./configure --prefix=$DIR/install |
./configure --prefix=$DIR/install |
| fi |
fi && |
| make && |
make && |
| make check && |
make check && |
| #gforth locals-test.fs |
#gforth locals-test.fs |
| #gforth test-counted-loops.fs |
#gforth test-counted-loops.fs |
| make install && |
make install && |
| #make bench |
#make all-bench && |
| chmod -R +w ../$GFORTH/vmgen-ex && |
chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 && |
| cd ../$GFORTH/vmgen-ex && |
cd ../$GFORTH/vmgen-ex && |
| PATH=$DIR/install/bin:$PATH make check && |
PATH=$DIR/install/bin:$PATH make check GCC="cc -O" YACC=yacc && |
| cd .. |
cd ../vmgen-ex2 && |
| cd .. |
PATH=$DIR/install/bin:$PATH make check GCC="cc -O" YACC=yacc && |
| install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok |
cd .. && |
| |
cd .. && |
| |
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && |
| |
echo test ok ) |
| chmod -R +w $GFORTH |
chmod -R +w $GFORTH |
| cd .. |
cd .. |