Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2012 04:12:32 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r243207 - projects/portbuild/scripts
Message-ID:  <201211180412.qAI4CWbQ048806@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Sun Nov 18 04:12:31 2012
New Revision: 243207
URL: http://svnweb.freebsd.org/changeset/base/243207

Log:
  Start parameterizing svn commands.

Modified:
  projects/portbuild/scripts/updatesnap
  projects/portbuild/scripts/updatesnap.ports

Modified: projects/portbuild/scripts/updatesnap
==============================================================================
--- projects/portbuild/scripts/updatesnap	Sun Nov 18 03:44:10 2012	(r243206)
+++ projects/portbuild/scripts/updatesnap	Sun Nov 18 04:12:31 2012	(r243207)
@@ -74,17 +74,17 @@ for branch in $SRC_BRANCHES; do
     if [ ! -d ${mountpoint}/src ]; then
       mkdir ${mountpoint}/src || finish 1
     fi
-    if [ ! -d ${mountpoint}/src/.svn ]; then
+    if [ ! -d ${mountpoint}/src/${VCS_SUBDIR} ]; then
       if [ $VERBOSE ]; then
         # XXX MCL 20121115 gotta do the substitution here, if it's not head!
-        echo "svn checkout svn://svn.freebsd.org/base/head ${mountpoint}/src"
+        echo "${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/head ${mountpoint}/src"
       fi
-      svn checkout svn://svn.freebsd.org/base/head ${mountpoint}/src || finish 1
+      ${VCS_CHECKOUT_COMMAND} ${VCS_SRC_REPOSITORY}/head ${mountpoint}/src || finish 1
     else
       if [ $VERBOSE ]; then
-        echo "svn up ${mountpoint}/src"
+        echo "${VCS_UPDATE_COMMAND} ${mountpoint}/src"
       fi
-      svn up ${mountpoint}/src || finish 1
+      ${VCS_UPDATE_COMMAND} ${mountpoint}/src || finish 1
     fi
     echo ${fulldate} > src/.updated
     # hack for zfs breakiness

Modified: projects/portbuild/scripts/updatesnap.ports
==============================================================================
--- projects/portbuild/scripts/updatesnap.ports	Sun Nov 18 03:44:10 2012	(r243206)
+++ projects/portbuild/scripts/updatesnap.ports	Sun Nov 18 04:12:31 2012	(r243207)
@@ -67,16 +67,16 @@ fi
 
 cd ${head}
 fulldate=$(date)
-if [ ! -d ${head}/ports/.svn ]; then
+if [ ! -d ${head}/ports/${VCS_SUBDIR} ]; then
   if [ $VERBOSE ]; then
-      echo "svn checkout svn://svn.freebsd.org/ports/head ${head}/ports"
+    echo "${VCS_CHECKOUT_COMMAND} ${VCS_PORTS_REPOSITORY}/head ${head}/ports"
   fi
-  svn checkout svn://svn.freebsd.org/ports/head ${head}/ports || finish 1
+  ${VCS_CHECKOUT_COMMAND} ${VCS_PORTS_REPOSITORY}/head ${head}/ports || finish 1
 else
   if [ $VERBOSE ]; then
-      echo "svn up ${head}/ports"
+    echo "${VCS_UPDATE_COMMAND} ${head}/ports"
   fi
-  svn up ${head}/ports || finish 1
+  ${VCS_UPDATE_COMMAND} ${head}/ports || finish 1
 fi
 echo ${fulldate} > ports/.updated
 # hack for zfs breakiness



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211180412.qAI4CWbQ048806>