Annotation of gforth/testdist, revision 1.16

1.5       anton       1: #! /bin/sh
1.1       anton       2: #tests that dist works
1.5       anton       3: #usage: testdist gforth-version.tar.gz
                      4: #gforth-version.tar.gz must be in the working directory
                      5: MACHINE=`hostname`
                      6: GFORTH=`basename $1 .tar.gz`
1.14      anton       7: DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
1.16    ! anton       8: PATHDIR=`pwd`
1.14      anton       9: test -z "$CC" && CC=cc
1.7       anton      10: chmod -R +w $GFORTH
1.5       anton      11: rm -rf $GFORTH
                     12: gunzip -cd $1 | tar xf -
1.12      anton      13: (if make --version|grep -q GNU
1.5       anton      14: then
                     15:        echo building in build
                     16:        chmod -R a-w $GFORTH
1.13      anton      17:        rm -rf build
1.5       anton      18:        mkdir build
                     19:        cd build
                     20:        ../$GFORTH/configure --prefix=$DIR/install
                     21: else
                     22:        echo building in $GFORTH
                     23:        cd $GFORTH
                     24:        ./configure --prefix=$DIR/install
1.12      anton      25: fi &&
1.7       anton      26: make &&
                     27: make check &&
1.1       anton      28: #gforth locals-test.fs
                     29: #gforth test-counted-loops.fs
1.7       anton      30: make install &&
1.11      anton      31: #make all-bench &&
1.9       anton      32: chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
1.8       anton      33: cd ../$GFORTH/vmgen-ex &&
1.16    ! anton      34: PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
1.9       anton      35: cd ../vmgen-ex2 &&
1.15      anton      36: PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
1.9       anton      37: cd .. &&
                     38: cd .. &&
                     39: install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&
1.12      anton      40: echo test ok )
1.1       anton      41: chmod -R +w $GFORTH
                     42: cd ..

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>