[gforth] / gforth / testdist  

gforth: gforth/testdist

Diff for /gforth/testdist between version 1.3 and 1.11

version 1.3, Thu Mar 20 14:39:53 1997 UTC version 1.11, Sat Feb 1 19:59:15 2003 UTC
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
 #use this if your make handles VPATH ok  #gforth-version.tar.gz must be in the working directory
 GFORTH=gforth-0.3.0  MACHINE=`hostname`
 mkdir test  GFORTH=`basename $1 .tar.gz`
 cd test  DIR=`pwd`
 DIR=$PWD  chmod -R +w $GFORTH
 gunzip -cd ../$GFORTH.tar.gz|tar xf -  rm -rf $GFORTH
   gunzip -cd $1 | tar xf -
   if make --version|grep -q GNU
   then
           echo building in build
 chmod -R a-w $GFORTH  chmod -R a-w $GFORTH
 mkdir build  mkdir build
 cd build  cd build
 ../$GFORTH/configure --prefix=$DIR/install  ../$GFORTH/configure --prefix=$DIR/install
 make  else
 make check          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=$DIR/install/bin:$PATH make check GCC="cc -O" &&
   cd ../vmgen-ex2 &&
   PATH=$DIR/install/bin:$PATH make check GCC="cc -O" &&
   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  


Generate output suitable for use with a patch program
Legend:
Removed from v.1.3  
changed lines
  Added in v.1.11

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help