diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-12-21 14:30:41 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-12-21 14:33:46 +0100 |
commit | f5fb312987cdd7707d76950586de064054540b65 (patch) | |
tree | ce796aaa784ab979d9ca7f8a9c9d7b8a78c65155 /docker/l10n-docker-nightly.sh | |
parent | fb51909217e1973933e9ccc45f831d6264749202 (diff) |
Docker: Allow chosing which branch to build
Add an env var for this, default is still "master"
Change-Id: If6ded3509efe9bf5bbb5a1d82b0aa2e66ac2c133
Reviewed-on: https://gerrit.libreoffice.org/65544
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'docker/l10n-docker-nightly.sh')
-rwxr-xr-x | docker/l10n-docker-nightly.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docker/l10n-docker-nightly.sh b/docker/l10n-docker-nightly.sh index 87cc31c69..5f8069a1e 100755 --- a/docker/l10n-docker-nightly.sh +++ b/docker/l10n-docker-nightly.sh @@ -8,6 +8,7 @@ # -- Available env vars -- # * DOCKER_HUB_REPO - which Docker Hub repo to use # * DOCKER_HUB_TAG - which Docker Hub tag to create +# * LIBREOFFICE_BRANCH - which branch to build (needs to exist in both core and online) # check we can sudo without asking a pwd echo "Trying if sudo works without a password" @@ -26,6 +27,11 @@ if [ -z "$DOCKER_HUB_TAG" ]; then fi; echo "Using Docker Hub Repository: '$DOCKER_HUB_REPO' with tag '$DOCKER_HUB_TAG'." +if [ -z "$LIBREOFFICE_BRANCH" ]; then + LIBREOFFICE_BRANCH="master" +fi; +echo "Building branch '$LIBREOFFICE_BRANCH'" + # check if we have jake which jake || { cat << EOF @@ -53,7 +59,7 @@ if test ! -d libreoffice ; then git clone https://git.libreoffice.org/core libreoffice || exit 1 fi -( cd libreoffice && git checkout master && ./g pull -r ) || exit 1 +( cd libreoffice && git checkout $LIBREOFFICE_BRANCH && ./g pull -r ) || exit 1 # online repo if test ! -d online ; then @@ -61,7 +67,7 @@ if test ! -d online ; then ( cd online && ./autogen.sh ) || exit 1 fi -( cd online && git checkout -f master && git pull -r ) || exit 1 +( cd online && git checkout -f $LIBREOFFICE_BRANCH && git pull -r ) || exit 1 ##### LibreOffice ##### |