enable to configure git branch

This commit is contained in:
Wolfram Schneider 2017-10-07 09:05:37 +00:00
parent 9c93d11e18
commit 9d3d99045e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51071

View file

@ -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)"