Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Oct 2017 09:05:37 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r51071 - head/share/tools
Message-ID:  <201710070905.v9795bDW074800@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Sat Oct  7 09:05:37 2017
New Revision: 51071
URL: https://svnweb.freebsd.org/changeset/doc/51071

Log:
  enable to configure git branch

Modified:
  head/share/tools/webupdate-regression

Modified: head/share/tools/webupdate-regression
==============================================================================
--- head/share/tools/webupdate-regression	Sat Oct  7 09:03:10 2017	(r51070)
+++ head/share/tools/webupdate-regression	Sat Oct  7 09:05:37 2017	(r51071)
@@ -35,6 +35,7 @@ set -e
 : ${NO_OBJ=YES}
 : ${make_opt=-j8}
 : ${GIT_REPO_FREEBSD_DOC="$HOME/freebsd-doc"}
+: ${FREEBSD_DOC_GIT_BRANCH=""}
 : ${WEBUPDATE_FORMATS="html-split html"}
 : ${WEBUPDATE_RUN_CLEAN=YES}
 : ${WEBUPDATE_LEVEL="3"}
@@ -69,6 +70,10 @@ checkout ()
   echo "git clone from $GIT_REPO_FREEBSD_DOC -> doc"
   git clone -q $GIT_REPO_FREEBSD_DOC doc
   cd doc
+  if [ "$FREEBSD_DOC_GIT_BRANCH" != "" ]; then
+    echo "switch to branch $FREEBSD_DOC_GIT_BRANCH"
+    git checkout $FREEBSD_DOC_GIT_BRANCH
+  fi
   echo "branch: $(git branch)"
   echo "cwd: $(pwd)"
 



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