svn commit: r243209 - projects/portbuild/scripts

Mark Linimon linimon at FreeBSD.org
Sun Nov 18 05:19:09 UTC 2012


Author: linimon (doc,ports committer)
Date: Sun Nov 18 05:19:08 2012
New Revision: 243209
URL: http://svnweb.freebsd.org/changeset/base/243209

Log:
  Bring back the ability to check out RELENG branches, not just head.

Modified:
  projects/portbuild/scripts/updatesnap

Modified: projects/portbuild/scripts/updatesnap
==============================================================================
--- projects/portbuild/scripts/updatesnap	Sun Nov 18 04:51:46 2012	(r243208)
+++ projects/portbuild/scripts/updatesnap	Sun Nov 18 05:19:08 2012	(r243209)
@@ -75,11 +75,11 @@ for branch in $SRC_BRANCHES; do
       mkdir ${mountpoint}/src || finish 1
     fi
     if [ ! -d ${mountpoint}/src/${VCS_SUBDIR} ]; then
+      eval subdir=\$SRC_BRANCH_${branch}_SUBDIR
       if [ $VERBOSE ]; then
-        # XXX MCL 20121115 gotta do the substitution here, if it's not head!
-        echo "${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/head ${mountpoint}/src"
+        echo "${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/${subdir} ${mountpoint}/src"
       fi
-      ${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/head ${mountpoint}/src || finish 1
+      ${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/${subdir} ${mountpoint}/src || finish 1
     else
       if [ $VERBOSE ]; then
         echo "${VCS_UPDATE_COMMAND} ${mountpoint}/src"


More information about the svn-src-projects mailing list