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

# Run as:
# $ ./update_twister.sh
set -eu

cd $HOME/twister/
git clean -fdx

git fetch
# reset to updated upstream branch, but only if we're tracking a branch
branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo HEAD)
git reset --hard "$branch"

git submodule update --init --force

./bootstrap
./configure CFLAGS='-ggdb -O0' \
  --prefix=$HOME/local \
  --with-gnunet=$HOME/local \
  --with-exchange=$HOME/local \
  --enable-logging=verbose
make install check