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