From 6ae614bc4ebcac4f18337e3c861404af4b396698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 5 Oct 2006 16:42:20 +0000 Subject: [PATCH] add --build-dir git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18242 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tools/heimdal-build.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/heimdal-build.sh b/tools/heimdal-build.sh index d2bafddb5..bba088b07 100644 --- a/tools/heimdal-build.sh +++ b/tools/heimdal-build.sh @@ -9,11 +9,12 @@ baseurl=ftp://ftp.pdc.kth.se/pub/heimdal/src afsdir=/afs/pdc.kth.se/public/ftp/pub/heimdal/src keeptree=no passhrase= +builddir= noemail= # 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]" +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]" date=`date +%Y%m%d` if [ "$?" != 0 ]; then @@ -44,6 +45,11 @@ do case $1 in --autotools) autotools=yes + shift + ;; + --build-dir) + builddir="$2" + shift 2 ;; --current) dir="snapshots/" @@ -116,6 +122,11 @@ url="${baseurl}/${dir}${hfile}" afsfile="${afsdir}/${dir}${hfile}" unpack=yes +if [ "X${builddir}" = X ]; then + echo "Changing build dir to ${builddir}" + cd "${builddir}" +fi + echo "Removing old source" rm -rf ${hversion} @@ -158,7 +169,7 @@ case "${hversion}" in esac if [ X"$unpack" = Xyes ]; then - echo Unpatching source + echo Unpacking source (gzip -dc ${hfile} | tar xf -) || exit 1 fi