Index: build.conf =================================================================== --- build.conf +++ build.conf @@ -1,5 +1,5 @@ -# SVN repository -export REPO=svn://svn.freebsd.org/ports +# Git repository +export REPO=https://git.FreeBSD.org/ports.git # tar(1) utility for building tarballs export TAR=`which tar` Index: build.sh =================================================================== --- build.sh +++ build.sh @@ -23,12 +23,9 @@ # Record when we're starting SNAPDATE=`date "+%s"` -# Get the latest revision # on the tree -if ! NEWREV=`sh -e s/svn-getrev.sh head`; then - echo "Waiting 5 minutes for svn server to return" - sleep 300 - NEWREV=`sh -e s/svn-getrev.sh head` -fi +# Update and get the latest commit hash +git --git-dir=${STATEDIR}/gitrepo fetch +NEWHASH=`git --git-dir=${STATEDIR}/gitrepo rev-parse HEAD` # Create a memory disk for holding the snapshot files. SNAPMD=`mdconfig -a -t swap -s ${SNAPMDSIZE} -n` @@ -36,7 +33,7 @@ mount -o noatime,noexec,async /dev/md${SNAPMD} ${SNAPDIR} # Build a snapshot -sh -e s/treesnap-build.sh head@${NEWREV} "${DESCRIBES_BUILD}" \ +sh -e s/treesnap-build.sh ${NEWHASH} "${DESCRIBES_BUILD}" \ ${TMPDIR} ${SNAPDIR} # Replace tarballs with "aliased" tarballs @@ -51,7 +48,7 @@ fi # Send emails if INDEX was broken or fixed -sh -e s/describes-warn.sh ${SNAPDIR} ${NEWREV} ${STATEDIR}/describes \ +sh -e s/describes-warn.sh ${SNAPDIR} ${NEWHASH} ${STATEDIR}/describes \ "${DESCRIBES_BUILD}" # Use old DESCRIBE files if the latest ones didn't build Index: releasesnap.sh =================================================================== --- releasesnap.sh +++ releasesnap.sh @@ -16,8 +16,8 @@ # Load configuration . build.conf -# Get the latest revision # on the tree -NEWREV=`sh -e s/svn-getrev.sh ${TREE}` +# Get the latest commit hash on the tree +NEWHASH=`git --git-dir=${STATEDIR}/gitrepo rev-parse HEAD` # Create a memory disk for holding everything which will end up in # /var/db/portsnap. Note that for normal (head) builds we mount the disk @@ -34,7 +34,7 @@ # Build a snapshot SNAPDIR=${STATEDIR}/work/files mkdir ${SNAPDIR} -sh -e s/treesnap-build.sh ${TREE}@${NEWREV} "${DESCRIBES}" ${WORKDIR} ${SNAPDIR} +sh -e s/treesnap-build.sh ${NEWHASH} "${DESCRIBES}" ${WORKDIR} ${SNAPDIR} # Replace tarballs with "aliased" tarballs if ! [ -z ${ALIASFILE} ]; then Index: s/describes-icbm.sh =================================================================== --- s/describes-icbm.sh +++ s/describes-icbm.sh @@ -6,14 +6,11 @@ exit 1 fi -# usage: sh -e describes-icbm.sh GOODREV BADREV ERRFILE -GOODREV="$1" -BADREV="$2" +# usage: sh -e describes-icbm.sh GOODHASH BADHASH ERRFILE +GOODHASH="$1" +BADHASH="$2" ERRFILE="$3" -# The first potentially faulty commit is GOODREV+1 -BADSTART=`expr "$GOODREV" + 1` - # Standard From/To/Subject lines cat <