add --prepend-path

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18760 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-21 16:54:58 +00:00
parent b4c55d807b
commit 4cadf6fb0f

View File

@@ -12,6 +12,7 @@ passhrase=
builddir= builddir=
noemail= noemail=
cputimelimit=3600 cputimelimit=3600
confflags=
# Add some bonus paths, to find sendmail and other tools # Add some bonus paths, to find sendmail and other tools
# on interesting platforms. # on interesting platforms.
@@ -66,10 +67,6 @@ do
cputimelimit="$2" cputimelimit="$2"
shift 2 shift 2
;; ;;
--release)
hversion="heimdal-$2"
shift 2
;;
--cvs) --cvs)
hversion="heimdal-cvs-${date}" hversion="heimdal-cvs-${date}"
cvsroot=$2 cvsroot=$2
@@ -80,6 +77,10 @@ do
cvsflags="$2" cvsflags="$2"
shift 2 shift 2
;; ;;
--release)
hversion="heimdal-$2"
shift 2
;;
--result-directory) --result-directory)
resultdir="$2" resultdir="$2"
if [ ! -d "$resultdir" ]; then if [ ! -d "$resultdir" ]; then
@@ -100,6 +101,10 @@ do
passhrase="$2" passhrase="$2"
shift 2 shift 2
;; ;;
--prepend-path)
prependpath="$2"
shift 2
;;
--no-email) --no-email)
noemail="yes" noemail="yes"
shift shift
@@ -132,6 +137,11 @@ url="${baseurl}/${dir}${hfile}"
afsfile="${afsdir}/${dir}${hfile}" afsfile="${afsdir}/${dir}${hfile}"
unpack=yes unpack=yes
# extra paths for the user
if [ "X${prependpath}" != X ]; then
PATH="${prependpath}:${PATH}"
fi
# Limit cpu seconds this all can take # Limit cpu seconds this all can take
ulimit -t "$cputimelimit" > /dev/null 2>&1 ulimit -t "$cputimelimit" > /dev/null 2>&1
@@ -173,11 +183,10 @@ if [ "X$res" != X0 ]; then
exit 1 exit 1
fi fi
confflags=
case "${hversion}" in case "${hversion}" in
0.7*) 0.7*)
#true for Mac OS X, but how about the rest? #true for Mac OS X, but how about the rest?
confflags="--enable-shared --disable-static" confflags="${confflags} --enable-shared --disable-static"
;; ;;
esac esac