X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a9d65cd81e8ca93af31086a136d1e3ade86ad8d2..c47ebdd0668b01a9227558c31febb0bd3d37f076:/test/setup-test?ds=inline diff --git a/test/setup-test b/test/setup-test index 2636a5df..fab26a0e 100755 --- a/test/setup-test +++ b/test/setup-test @@ -2,13 +2,21 @@ set -e +if TEMPDIR=`cat test-temp-dir 2> /dev/null` \ + && [ -e $TEMPDIR/bld/Makefile ]; then + (cd $TEMPDIR/bld && make all install) + exit +fi + TEMPDIR=`mktemp -d /tmp/nmh-test-XXXXXXXX` echo $TEMPDIR > test-temp-dir cd .. -autoheader && autoconf && date > stamp-h.in -./configure --prefix=$TEMPDIR --with-locking=fcntl --enable-debug -make clean +if ! [ -e configure ]; then + ./autogen.sh +fi +srcdir=$PWD +mkdir $TEMPDIR/bld +cd $TEMPDIR/bld +$srcdir/configure --prefix=$TEMPDIR --with-locking=fcntl --enable-debug make install - -echo "Path: $TEMPDIR/Mail" > $TEMPDIR/mh_profile