diff options
Diffstat (limited to 'taler-build/update_merchant.sh')
-rwxr-xr-x | taler-build/update_merchant.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/taler-build/update_merchant.sh b/taler-build/update_merchant.sh index 5af4fa2..aba2f65 100755 --- a/taler-build/update_merchant.sh +++ b/taler-build/update_merchant.sh @@ -1,28 +1,30 @@ #!/bin/bash export PATH="$HOME/deployment":$PATH +base=${TALER_DEPLOYMENT_BASE:-$HOME} build_merchant() { ( set -eu + base=${TALER_DEPLOYMENT_BASE:-$HOME} cd $HOME/merchant git clean -fdx ./bootstrap ./configure CFLAGS='-ggdb -O0' \ - --prefix=$HOME/local --with-gnunet=$HOME/local \ - --with-mint=$HOME/local \ - --with-microhttpd=$HOME/local \ + --prefix=$base/local --with-gnunet=$base/local \ + --with-mint=$base/local \ + --with-microhttpd=$base/local \ --enable-logging=verbose make make install ) } -cd $HOME/merchant/ && \ +cd $base/merchant/ && \ git pull && \ git submodule update --init && \ - cd $HOME/deployment && \ + cd $base/deployment && \ build_merchant && \ arm.sh -k taler-merchant arm.sh -i taler-merchant |