summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-12-17 08:11:14 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-12-17 08:24:32 +0100
commit0068d8b2d91ec1b5fc94881822621e22986316fe (patch)
tree9a3f08f8a6bb5750131601caffd80d8ab71903aa
parentaae1eae9e4a7503d5d6cb0fe4f6ba573c73f7933 (diff)
docker: Allow to build different branches in core+online
Change-Id: Ifbd705fc95ae225858ccd582ed2e0150a40f6a93 Reviewed-on: https://gerrit.libreoffice.org/85254 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rwxr-xr-xdocker/l10n-docker-nightly.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/docker/l10n-docker-nightly.sh b/docker/l10n-docker-nightly.sh
index c877cbb5c..4bb588823 100755
--- a/docker/l10n-docker-nightly.sh
+++ b/docker/l10n-docker-nightly.sh
@@ -8,7 +8,8 @@
# -- 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)
+# * LIBREOFFICE_BRANCH - which branch to build in core
+# * LIBREOFFICE_ONLINE_BRANCH - which branch to build in online
# * LIBREOFFICE_BUILD_TARGET - which make target to run (in core repo)
# * ONLINE_EXTRA_BUILD_OPTIONS - extra build options for online
# * NO_DOCKER_IMAGE - if set, don't build the docker image itself, just do all the preps
@@ -33,7 +34,12 @@ 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'"
+echo "Building core branch '$LIBREOFFICE_BRANCH'"
+
+if [ -z "$LIBREOFFICE_ONLINE_BRANCH" ]; then
+ LIBREOFFICE_ONLINE_BRANCH="master"
+fi;
+echo "Building online branch '$LIBREOFFICE_ONLINE_BRANCH'"
if [ -z "$LIBREOFFICE_BUILD_TARGET" ]; then
LIBREOFFICE_BUILD_TARGET=""
@@ -65,7 +71,7 @@ if test ! -d online ; then
git clone https://git.libreoffice.org/online online || exit 1
fi
-( cd online && git fetch --all && git checkout -f $LIBREOFFICE_BRANCH && git clean -f -d && git pull -r ) || exit 1
+( cd online && git fetch --all && git checkout -f $LIBREOFFICE_ONLINE_BRANCH && git clean -f -d && git pull -r ) || exit 1
##### LibreOffice #####