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