Diff for /gforth/testdist between versions 1.7 and 1.18

version 1.7, 2001/05/01 13:35:42 version 1.18, 2008/10/25 22:30: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`
 GFORTH=`basename $1 .tar.gz`  GFORTH=`basename $1 .tar.gz`
 DIR=`pwd`  result=ok
 chmod -R +w $GFORTH  for CC in `(shopt -s nullglob; for i in /usr/sfw/bin /opt/csw/gcc4 \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do
 rm -rf $GFORTH      last=broken
 gunzip -cd $1 | tar xf -      rm -rf $CC
 if make --version|grep -q GNU      mkdir $CC
 then      cd $CC
         echo building in build      PATHDIR=`pwd`
       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 -q GNU
        then
           echo building in build with $CC
         chmod -R a-w $GFORTH          chmod -R a-w $GFORTH
           rm -rf build
         mkdir build          mkdir build
         cd build          cd build
         ../$GFORTH/configure --prefix=$DIR/install          ../$GFORTH/configure --prefix=$DIR/install CC=$CC
 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
 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 bench  #make all-bench &&
 cd vmgen-ex &&       chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
 PATH=$DIR/install/bin:$PATH make check &&       cd ../$GFORTH/vmgen-ex &&
 cd .. &&       PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
 cd .. &&       cd ../vmgen-ex2 &&
 install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok       PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
 chmod -R +w $GFORTH       cd .. &&
 cd ..       cd .. &&
        install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye >&/dev/null &&
        make -f build/Makefile onebench ENGINE_FAST=install/bin/gforth-fast &&
        install/bin/gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' ) &&
       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.7  
changed lines
  Added in v.1.18


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