Diff for /gforth/testdist between versions 1.14 and 1.21

version 1.14, 2003/08/22 08:08:46 version 1.21, 2008/11/01 18:03:06
Line 1 Line 1
 #! /bin/sh  #! /bin/bash
 #tests that dist works  #tests that dist works
 #usage: testdist gforth-version.tar.gz  #usage: testdist gforth-version.tar.gz
 #gforth-version.tar.gz must be in the working directory  #gforth-version.tar.gz must be in the working directory
 MACHINE=`hostname`  MACHINE=`hostname`
   test $MACHINE = mail2 -o $MACHINE = t1000 && confopt='ac_cv_prog_GNU_LIBTOOL='
 GFORTH=`basename $1 .tar.gz`  GFORTH=`basename $1 .tar.gz`
 DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`  result=ok
 test -z "$CC" && CC=cc  for CC in `(shopt -s nullglob; for i in /usr/sfw/bin /opt/csw/gcc4/bin \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do
 chmod -R +w $GFORTH      last=broken
 rm -rf $GFORTH      rm -rf $CC
 gunzip -cd $1 | tar xf -      mkdir $CC
 (if make --version|grep -q GNU      cd $CC
 then      PATHDIR=`pwd`
         echo building in build      DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
       chmod -R +w $GFORTH
       rm -rf $GFORTH
       gunzip -cd ../$1 | tar xf -
       (if make --version|grep GNU >/dev/null
        then
           echo building in build with $CC
         chmod -R a-w $GFORTH          chmod -R a-w $GFORTH
         rm -rf build          rm -rf build
         mkdir build          mkdir build
         cd build          cd build
         ../$GFORTH/configure --prefix=$DIR/install          ../$GFORTH/configure --prefix=$DIR/install CC=$CC $confopt
 else       else
         echo building in $GFORTH          echo building in $GFORTH with $CC
         cd $GFORTH          cd $GFORTH
         ./configure --prefix=$DIR/install          ./configure --prefix=$DIR/install CC=$CC $confopt
 fi &&       fi &&
 make &&       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 all-bench &&  #make all-bench &&
 chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&       chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
 cd ../$GFORTH/vmgen-ex &&       cd ../$GFORTH/vmgen-ex &&
 PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc &&       PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
 cd ../vmgen-ex2 &&       cd ../vmgen-ex2 &&
 PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc &&       PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
 cd .. &&       cd .. &&
 cd .. &&       cd .. &&
 install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&       install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye >&/dev/null &&
 echo test ok )       install/bin/gforth-fast onebench.fs -e bye &&
 chmod -R +w $GFORTH       install/bin/gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' ) &&
 cd ..      last=ok
       echo $CC $last
       chmod -R +w $GFORTH
       cd ..
       test $result = ok -a $last = ok || result=broken
   done
   echo test $result

Removed from v.1.14  
changed lines
  Added in v.1.21


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