summaryrefslogtreecommitdiff
path: root/taler-build/update_twister.sh
blob: 8d4f54c5329cbd0d378e4a101e528169cfe3413d (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
#!/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
make install check