add --build-dir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18242 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -9,11 +9,12 @@ baseurl=ftp://ftp.pdc.kth.se/pub/heimdal/src
|
|||||||
afsdir=/afs/pdc.kth.se/public/ftp/pub/heimdal/src
|
afsdir=/afs/pdc.kth.se/public/ftp/pub/heimdal/src
|
||||||
keeptree=no
|
keeptree=no
|
||||||
passhrase=
|
passhrase=
|
||||||
|
builddir=
|
||||||
noemail=
|
noemail=
|
||||||
|
|
||||||
# no more use configurabled part below (hopefully)
|
# 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`
|
date=`date +%Y%m%d`
|
||||||
if [ "$?" != 0 ]; then
|
if [ "$?" != 0 ]; then
|
||||||
@@ -44,6 +45,11 @@ do
|
|||||||
case $1 in
|
case $1 in
|
||||||
--autotools)
|
--autotools)
|
||||||
autotools=yes
|
autotools=yes
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--build-dir)
|
||||||
|
builddir="$2"
|
||||||
|
shift 2
|
||||||
;;
|
;;
|
||||||
--current)
|
--current)
|
||||||
dir="snapshots/"
|
dir="snapshots/"
|
||||||
@@ -116,6 +122,11 @@ url="${baseurl}/${dir}${hfile}"
|
|||||||
afsfile="${afsdir}/${dir}${hfile}"
|
afsfile="${afsdir}/${dir}${hfile}"
|
||||||
unpack=yes
|
unpack=yes
|
||||||
|
|
||||||
|
if [ "X${builddir}" = X ]; then
|
||||||
|
echo "Changing build dir to ${builddir}"
|
||||||
|
cd "${builddir}"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Removing old source"
|
echo "Removing old source"
|
||||||
rm -rf ${hversion}
|
rm -rf ${hversion}
|
||||||
|
|
||||||
@@ -158,7 +169,7 @@ case "${hversion}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ X"$unpack" = Xyes ]; then
|
if [ X"$unpack" = Xyes ]; then
|
||||||
echo Unpatching source
|
echo Unpacking source
|
||||||
(gzip -dc ${hfile} | tar xf -) || exit 1
|
(gzip -dc ${hfile} | tar xf -) || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user