commit 6b9fe8c5be375273bfc01697c30f0601756fe6ee parent d4143b2f8d61bef5dd9d2fbe296e61d79802376c Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Mon, 10 Jun 2019 21:23:08 +0200 automating the sites builder Diffstat:
| A | bootstrap-sitesbuilder | | | 30 | ++++++++++++++++++++++++++++++ |
1 file changed, 30 insertions(+), 0 deletions(-)
diff --git a/bootstrap-sitesbuilder b/bootstrap-sitesbuilder @@ -0,0 +1,30 @@ +#!/bin/bash + +# Bootstrap the Taler setup for the user account that +# is currently logged in. + +# Generates a setup for a single user, +# including a postgresql DB. + +set -eu + +BRANCH=master +REPOS="www docs-landing" + +cd $HOME + +for component in $REPOS; do + if ! test -d $HOME/$component; then + git clone git://git.taler.net/$component.git + fi +done + +for component in $REPOS; do + echo "Checking out $component to $BRANCH" + git -C $HOME/$component checkout $BRANCH +done + +mkdir stamps + +ln -sf ../deployment/taler-sitesbuild/Makefile stamps/ +ln -sf ../deployment/taler-sitesbuild/invalidate.sh stamps/