From c6d43b1274c044c275f8dbea343aff33593a7485 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 6 Feb 2018 04:06:40 +0100 Subject: build docs the same way as blue/green --- taler-docbuild/update_doc_landing.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 taler-docbuild/update_doc_landing.sh (limited to 'taler-docbuild/update_doc_landing.sh') diff --git a/taler-docbuild/update_doc_landing.sh b/taler-docbuild/update_doc_landing.sh new file mode 100755 index 0000000..bbc0086 --- /dev/null +++ b/taler-docbuild/update_doc_landing.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -eu + +fetch () { + git clean -fdx + git fetch + # reset to updated upstream branch, but only if we're tracking a branch + branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo head) + git reset --hard "$branch" +} + +cd $HOME/docs-landing/ +fetch +git submodule update --force --init + +# No compilation needed so far. +mkdir -p $HOME/build/docs-landing/ +cp -t $HOME/build/docs-landing/ *.{html,css,svg} -- cgit v1.2.3