switch to svn

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20357 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-16 11:14:24 +00:00
parent 75016755e0
commit c093dca1c0

View File

@@ -21,7 +21,7 @@ PATH="${PATH}:/usr/local/bin:/usr/local/sbin"
# no more user configurabled part below (hopefully) # no more user configurabled part below (hopefully)
usage="[--current] [--release version] [--cvs SourceRepository] [--cvs-flags] [--result-directory dir] [--fetch-method wget|ftp|curl|cvs|fetch|afs] --keep-tree] [--autotools] [--passhrase string] [--no-email] [--build-dir dir] [--cputime] [--distcheck] [--test-environment env] [--configure-flags flags]" usage="[--current] [--svn SourceRepository] [--cvs-flags] [--result-directory dir] [--fetch-method wget|ftp|curl|cvs|fetch|afs] --keep-tree] [--autotools] [--passhrase string] [--no-email] [--build-dir dir] [--cputime] [--distcheck] [--test-environment env] [--configure-flags flags]"
date=`date +%Y%m%d` date=`date +%Y%m%d`
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
@@ -66,6 +66,10 @@ do
hversion="heimdal-${date}" hversion="heimdal-${date}"
shift shift
;; ;;
--release)
hversion="heimdal-$2"
shift 2
;;
--cputime) --cputime)
cputimelimit="$2" cputimelimit="$2"
shift 2 shift 2
@@ -74,28 +78,10 @@ do
ccachedir="$2" ccachedir="$2"
shift 2 shift 2
;; ;;
--cvs) --svn)
hversion="heimdal-cvs-${date}" hversion="heimdal-svn-${date}"
cvsroot=$2 svnroot=$2
fetchmethod=cvs fetchmethod=svn
shift 2
;;
--cvs-flags)
cvsflags="$2"
shift 2
;;
--cvs-branch)
if [ "X$cvsroot" == "X" ] ; then
echo "option --cvs must be given before --cvs-branch"
exit 1
fi
cvsbranch="-r $2"
branch="-$2"
hversion="$2-${date}"
shift 2
;;
--release)
hversion="heimdal-$2"
shift 2 shift 2
;; ;;
--distcheck) --distcheck)
@@ -197,9 +183,8 @@ afs)
cp ${afsfile} ${hfile} cp ${afsfile} ${hfile}
res=$? res=$?
;; ;;
cvs) svn)
cvs -Qq ${cvsflags} -d "${cvsroot}" \ svn co $svnroot ${hversion}
co -P ${cvsbranch} -d ${hversion} heimdal
res=$? res=$?
unpack=no unpack=no
autotools=yes autotools=yes
@@ -214,13 +199,6 @@ if [ "X$res" != X0 ]; then
exit 1 exit 1
fi fi
case "${hversion}" in
0.7*)
#true for Mac OS X, but how about the rest?
confflags="${confflags} --enable-shared --disable-static"
;;
esac
if [ X"$unpack" = Xyes ]; then if [ X"$unpack" = Xyes ]; then
echo Unpacking source echo Unpacking source
(gzip -dc ${hfile} | tar xf -) || exit 1 (gzip -dc ${hfile} | tar xf -) || exit 1
@@ -228,7 +206,7 @@ fi
if [ X"$autotools" = Xyes ]; then if [ X"$autotools" = Xyes ]; then
echo "Autotooling (via fix-export)" echo "Autotooling (via fix-export)"
env DATEDVERSION="cvs${branch}-${date}" ${hversion}/fix-export ${hversion} env DATEDVERSION="svn${branch}-${date}" ${hversion}/fix-export ${hversion}
fi fi
if [ X"$ccachedir" != X ]; then if [ X"$ccachedir" != X ]; then