Home | History | Annotate | Download | only in one-true-awk
      1 #! /bin/sh
      2 
      3 case `uname` in
      4 CYGWIN)	EXE=a.exe ;;
      5 *)	EXE=a.out ;;
      6 esac
      7 
      8 if [ ! -f $EXE ]
      9 then
     10 	make || exit 1
     11 fi
     12 
     13 if [ -d testdir ]
     14 then
     15 	true	# do nothing
     16 elif [ -f awktest.tar ]
     17 then
     18 	echo extracting testdir
     19 	tar -xpf awktest.tar
     20 else
     21 	echo $0: No testdir directory and no awktest.tar to extract it from! >&2
     22 	exit 1
     23 fi
     24 
     25 cd testdir
     26 pwd
     27 PATH=.:$PATH
     28 export PATH
     29 if (ulimit -c unlimited > /dev/null 2>&1)
     30 then
     31 	# Workaround broken default on MacOS X
     32 	ulimit -c unlimited
     33 fi
     34 
     35 REGRESS
     36