taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 3dcc84f95f81dc697adc0c1a245fc31f78f09a9e
parent cb60e3c140c738fbb011b9a24e7962be7572979d
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 24 Nov 2017 17:16:55 +0100

unique script to update all frontends

Diffstat:
Mtaler-build/update_merchant_frontends.sh | 22++++++++++++----------
Dtaler-build/update_merchant_survey.sh | 17-----------------
2 files changed, 12 insertions(+), 27 deletions(-)

diff --git a/taler-build/update_merchant_frontends.sh b/taler-build/update_merchant_frontends.sh @@ -2,16 +2,18 @@ set -eu -cd $HOME/merchant-frontends/ -git clean -fxd +for frontend in blog donations survey; do + cd $HOME/frontend/ + git clean -fxd -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" + 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" -git submodule update --init --force + git submodule update --init --force -./bootstrap -./configure --prefix="$HOME/local" -make install check + ./bootstrap + ./configure --prefix="$HOME/local" + make install check +done diff --git a/taler-build/update_merchant_survey.sh b/taler-build/update_merchant_survey.sh @@ -1,17 +0,0 @@ -#!/bin/bash - -set -eu - -cd $HOME/survey/ -git clean -fxd - -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" - -git submodule update --init --force - -./bootstrap -./configure --prefix="$HOME/local" -make install