#!/bin/bash
set -eu
cd $HOME/merchant-frontends/
git clean -fxd
# like "git pull", but robust against force pushes
# and local changes
git fetch
git reset --hard FETCH_HEAD
git submodule update --init --force
./bootstrap
./configure --prefix="$HOME/local"
make
make install