Diff for /gforth/testdist between versions 1.2 and 1.16

version 1.2, 1996/12/23 15:07:46 version 1.16, 2003/08/25 16:14:25
Line 1 Line 1
   #! /bin/sh
 #tests that dist works  #tests that dist works
 #call this with gforth-$(version).tar.gz in the working directory  #usage: testdist gforth-version.tar.gz
 GFORTH=gforth-0.2.1  #gforth-version.tar.gz must be in the working directory
 mkdir test  MACHINE=`hostname`
 cd test  GFORTH=`basename $1 .tar.gz`
 DIR=$PWD  DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
 gunzip -cd ../$GFORTH.tar.gz|tar xf -  PATHDIR=`pwd`
 chmod -R a-w $GFORTH  test -z "$CC" && CC=cc
 mkdir build  chmod -R +w $GFORTH
 cd build  rm -rf $GFORTH
 ../$GFORTH/configure --prefix=$DIR/install  gunzip -cd $1 | tar xf -
 make  (if make --version|grep -q GNU
 make check  then
           echo building in build
           chmod -R a-w $GFORTH
           rm -rf build
           mkdir build
           cd build
           ../$GFORTH/configure --prefix=$DIR/install
   else
           echo building in $GFORTH
           cd $GFORTH
           ./configure --prefix=$DIR/install
   fi &&
   make &&
   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 &&
 cd ..  chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
 install/bin/gforth tester.fs coretest.fs postponetest.fs dbltest.fs -e bye  cd ../$GFORTH/vmgen-ex &&
   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" YACC=yacc LEX=lex &&
   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 ..
 rm -rf test  

Removed from v.1.2  
changed lines
  Added in v.1.16


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