1*9a7741deSElliott Hughes#! /bin/sh 2*9a7741deSElliott Hughes 3*9a7741deSElliott Hughescase `uname` in 4*9a7741deSElliott HughesCYGWIN) EXE=a.exe ;; 5*9a7741deSElliott Hughes*) EXE=a.out ;; 6*9a7741deSElliott Hughesesac 7*9a7741deSElliott Hughes 8*9a7741deSElliott Hughesif [ ! -f $EXE ] 9*9a7741deSElliott Hughesthen 10*9a7741deSElliott Hughes make || exit 1 11*9a7741deSElliott Hughesfi 12*9a7741deSElliott Hughes 13*9a7741deSElliott Hughesif [ -d testdir ] 14*9a7741deSElliott Hughesthen 15*9a7741deSElliott Hughes true # do nothing 16*9a7741deSElliott Hugheselif [ -f awktest.tar ] 17*9a7741deSElliott Hughesthen 18*9a7741deSElliott Hughes echo extracting testdir 19*9a7741deSElliott Hughes tar -xpf awktest.tar 20*9a7741deSElliott Hugheselse 21*9a7741deSElliott Hughes echo $0: No testdir directory and no awktest.tar to extract it from! >&2 22*9a7741deSElliott Hughes exit 1 23*9a7741deSElliott Hughesfi 24*9a7741deSElliott Hughes 25*9a7741deSElliott Hughescd testdir 26*9a7741deSElliott Hughespwd 27*9a7741deSElliott HughesPATH=.:$PATH 28*9a7741deSElliott Hughesexport PATH 29*9a7741deSElliott Hughesif (ulimit -c unlimited > /dev/null 2>&1) 30*9a7741deSElliott Hughesthen 31*9a7741deSElliott Hughes # Workaround broken default on MacOS X 32*9a7741deSElliott Hughes ulimit -c unlimited 33*9a7741deSElliott Hughesfi 34*9a7741deSElliott Hughes 35*9a7741deSElliott HughesREGRESS 36*9a7741deSElliott Hughes 37*9a7741deSElliott Hughescd .. 38*9a7741deSElliott Hughescd bugs-fixed 39*9a7741deSElliott HughesREGRESS 40