File:  [gforth] / gforth / testdist
Revision 1.16: download - view: text, annotated - select for diffs
Mon Aug 25 16:14:25 2003 UTC (20 years, 7 months ago) by anton
Branches: MAIN
CVS tags: v0-6-2, HEAD
minor changes

    1: #! /bin/sh
    2: #tests that dist works
    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`
    7: DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
    8: PATHDIR=`pwd`
    9: test -z "$CC" && CC=cc
   10: chmod -R +w $GFORTH
   11: rm -rf $GFORTH
   12: gunzip -cd $1 | tar xf -
   13: (if make --version|grep -q GNU
   14: then
   15: 	echo building in build
   16: 	chmod -R a-w $GFORTH
   17: 	rm -rf build
   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
   25: fi &&
   26: make &&
   27: make check &&
   28: #gforth locals-test.fs
   29: #gforth test-counted-loops.fs
   30: make install &&
   31: #make all-bench &&
   32: chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
   33: cd ../$GFORTH/vmgen-ex &&
   34: PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
   35: cd ../vmgen-ex2 &&
   36: PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
   37: cd .. &&
   38: cd .. &&
   39: install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&
   40: echo test ok )
   41: chmod -R +w $GFORTH
   42: cd ..

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