#!/bin/sh
# This file is in the public domain.
# Helper script to build the latest DEB packages in the container.
set -eu
unset LD_LIBRARY_PATH
mkdir -p /build
cd /build
# Fetch source
rm -rf *
git clone git://git.taler.net/libeufin
cd libeufin
git checkout $1
./bootstrap
./configure --prefix=/usr/local
make deb
cp /build/*.deb /pkgdir/
dpkg -i /build/*.deb