passhrase=
builddir=
noemail=
+cputimelimit=3600
# Add some bonus paths, to find sendmail and other tools
# on interesting platforms.
# no more use configurabled part below (hopefully)
-usage="[--current] [--release version] [--cvs SourceRepository] [--cvs-flags] [--result-directory dir] [--fetch-method wget|ftp|curl|cvs] --keep-tree] [--autotools] [--passhrase string] [--no-email] [--build-dir dir]"
+usage="[--current] [--release version] [--cvs SourceRepository] [--cvs-flags] [--result-directory dir] [--fetch-method wget|ftp|curl|cvs] --keep-tree] [--autotools] [--passhrase string] [--no-email] [--build-dir dir] [--cputime]"
date=`date +%Y%m%d`
if [ "$?" != 0 ]; then
hversion="heimdal-${date}"
shift
;;
+ --cputime)
+ cputimelimit="$2"
+ shift 2
+ ;;
--release)
hversion="heimdal-$2"
shift 2
afsfile="${afsdir}/${dir}${hfile}"
unpack=yes
+# Limit cpu seconds this all can take
+ulimit -t "$cputimelimit" > /dev/null 2>&1
+
if [ "X${builddir}" = X ]; then
echo "Changing build dir to ${builddir}"
cd "${builddir}"
cd ${hversion} || exit 1
+mkdir socket_wrapper_dir
+SOCKET_WRAPPER_DIR=./socket_wrapper_dir
+export SOCKET_WRAPPER_DIR
+
echo "Configuring and building ($hversion)"
-(./configure ${confflags} && make all check) > ab.txt 2>&1
+./configure --enable-socket-wrapper ${confflags} > ab.txt 2>&1
+if [ $? != 0 ] ; then
+ echo Configure failed
+fi
+make all >> ab.txt 2>&1
+if [ $? != 0 ] ; then
+ echo Make all failed
+fi
+make check >> ab.txt 2>&1
+if [ $? != 0 ] ; then
+ echo Make all failed
+fi
if [ "X${resultdir}" != X ] ; then
cp ab.txt "${resultdir}/ab-${hversion}-${hostname}-${date}.txt"