Removed -nowhatnowproc switch as it does nothing useful.
[mmh] / test / setup-test
1 #!/bin/sh
2
3 set -e
4
5 if TEMPDIR=`cat test-temp-dir 2> /dev/null` \
6    && [ -e $TEMPDIR/bld/Makefile ]; then
7     (cd $TEMPDIR/bld && make all install)
8     exit
9 fi
10
11 TEMPDIR=`mktemp -d /tmp/nmh-test-XXXXXXXX`
12 echo $TEMPDIR > test-temp-dir
13
14 cd ..
15 if ! [ -e configure ]; then
16     ./autogen.sh
17 fi
18 srcdir=$PWD
19 mkdir $TEMPDIR/bld
20 cd $TEMPDIR/bld
21 $srcdir/configure --prefix=$TEMPDIR --with-locking=fcntl --enable-debug
22 make install