Annotation of gforth/testdist, revision 1.5
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.1 anton 7: DIR=$PWD
1.5 ! anton 8: rm -rf $GFORTH
! 9: gunzip -cd $1 | tar xf -
! 10: if make --version|grep -q GNU
! 11: then
! 12: echo building in build
! 13: chmod -R a-w $GFORTH
! 14: mkdir build
! 15: cd build
! 16: ../$GFORTH/configure --prefix=$DIR/install
! 17: else
! 18: echo building in $GFORTH
! 19: cd $GFORTH
! 20: ./configure --prefix=$DIR/install
! 21: fi
1.1 anton 22: make
23: make check
24: #gforth locals-test.fs
25: #gforth test-counted-loops.fs
26: make install
1.5 ! anton 27: #make bench
1.1 anton 28: cd ..
1.5 ! anton 29: install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok
1.1 anton 30: chmod -R +w $GFORTH
31: cd ..
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>