summaryrefslogtreecommitdiff
path: root/taler-build/update_exchange.sh
blob: 4339dcfbdb7b815a0558dd625609c52e4600ccbd (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
28
29
#!/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 && \
  arm.sh -k taler-exchange
arm.sh -i taler-exchange