taler-deployment

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

commit e55efcea6bbe6d652100bee19c14b9e366abf91b
parent 5cf9e76e20f2cab20c12a548172717b7f518f583
Author: Florian Dold <florian.dold@gmail.com>
Date:   Fri, 20 May 2016 14:46:52 +0200

Make build system robust against force pushes

Diffstat:
Mtaler-build/update_bank.sh | 10+++++++---
Mtaler-build/update_exchange.sh | 35+++++++++++++++--------------------
Mtaler-build/update_landing.sh | 13+++++++++----
Mtaler-build/update_libgnurl.sh | 9+++++++--
Mtaler-build/update_merchant.sh | 10++++++++--
Mtaler-build/update_merchant_frontends.sh | 10++++++++--
6 files changed, 54 insertions(+), 33 deletions(-)

diff --git a/taler-build/update_bank.sh b/taler-build/update_bank.sh @@ -2,10 +2,14 @@ set -eu -cd $HOME/bank/ -git pull -git submodule update --init +cd $HOME/bank git clean -fxd + +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD + ./bootstrap ./configure --prefix="$HOME/local" make diff --git a/taler-build/update_exchange.sh b/taler-build/update_exchange.sh @@ -1,25 +1,20 @@ #!/bin/bash -export PATH="$HOME/deployment":$PATH +set -eu -build_exchange() { - ( - set -eu +cd $HOME/exchange +git clean -fdx - cd $HOME/exchange - git clean -fdx - ./bootstrap - ./configure CFLAGS='-ggdb -O0' \ - --with-libgnurl=$HOME/local \ - --with-microhttpd=$HOME/local \ - --prefix=$HOME/local --with-gnunet=$HOME/local \ - --enable-logging=verbose - make - make install - ) -} +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD -cd $HOME/exchange && \ - git pull && \ - cd $HOME/deployment && \ - build_exchange +./bootstrap +./configure CFLAGS='-ggdb -O0' \ + --with-libgnurl=$HOME/local \ + --with-microhttpd=$HOME/local \ + --prefix=$HOME/local --with-gnunet=$HOME/local \ + --enable-logging=verbose +make +make install diff --git a/taler-build/update_landing.sh b/taler-build/update_landing.sh @@ -1,8 +1,13 @@ #!/bin/bash -set -e -base=$HOME +set -eu + +cd $HOME/landing +git clean -fxd + +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD -cd $base/landing -git pull git submodule update --init diff --git a/taler-build/update_libgnurl.sh b/taler-build/update_libgnurl.sh @@ -1,8 +1,13 @@ #!/bin/bash -cd $HOME/gnurl/ +cd $HOME/gnurl git clean -fxd -git pull + +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD + ./buildconf ./configure --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl --without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file --disable-ftp --disable-smb --prefix=$HOME/local make diff --git a/taler-build/update_merchant.sh b/taler-build/update_merchant.sh @@ -3,9 +3,15 @@ set -eu cd $HOME/merchant/ -git pull -git submodule update --init git clean -fdx + +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD + +git submodule update --init + ./bootstrap ./configure CFLAGS='-ggdb -O0' \ --prefix=$HOME/local --with-gnunet=$HOME/local \ diff --git a/taler-build/update_merchant_frontends.sh b/taler-build/update_merchant_frontends.sh @@ -3,9 +3,15 @@ set -eu cd $HOME/merchant-frontends/ -git pull -git submodule update --init git clean -fxd + +# like "git pull", but robust against force pushes +# and local changes +git fetch +git reset --hard FETCH_HEAD + +git submodule update --init + ./bootstrap ./configure --prefix="$HOME/local" make