summaryrefslogtreecommitdiff
path: root/update_merchant.sh
blob: 5af4fa286fc46fc210e3df9485fb7f80c9c110f2 (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

export PATH="$HOME/deployment":$PATH

build_merchant() {
  (
    set -eu

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

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