summaryrefslogtreecommitdiff
path: root/taler-build/update_merchant.sh
blob: bde9046404c56276bc564c2a9c236f9e737014b5 (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
30
#!/bin/bash

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

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

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

cd $base/merchant/ && \
  git pull && \
  git submodule update --init && \
  cd $base/deployment && \
  build_merchant && \
  arm.sh -k taler-merchant
arm.sh -i taler-merchant