projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mhbuild: Removed support for creating message/external-body parts.
[mmh]
/
test
/
setup-test
diff --git
a/test/setup-test
b/test/setup-test
index
46b83b0
..
fab26a0
100755
(executable)
--- a/
test/setup-test
+++ b/
test/setup-test
@@
-1,12
+1,22
@@
#!/bin/sh
#!/bin/sh
+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 ..
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
-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
make install
-
-echo "Path: $TEMPDIR/Mail" > $TEMPDIR/mh_profile