summaryrefslogtreecommitdiff
path: root/taler-build/update_exchange.sh
blob: 9d3fed32fc7f6da5d9637a0eb027d53fe6ae66e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

base=${TALER_DEPLOYMENT_BASE:-$HOME}
export PATH="$base/deployment":$PATH

build_exchange() {
  (
    set -eu
    base=${TALER_DEPLOYMENT_BASE:-$HOME}

    cd $base/exchange
    git clean -fdx
    ./bootstrap
    ./configure CFLAGS='-ggdb -O0' \
            --with-libgnurl=$base/local \
            --with-microhttpd=$base/local \
            --prefix=$base/local --with-gnunet=$base/local \
            --enable-logging=verbose
    make
    make install
  )
}

cd $base/exchange && \
  git pull && \
  cd $base/deployment && \
  build_exchange