#!/bin/sh

# Bootstrap the repository.  Used when the repository is checked out from git.
# When using the source tarball, running this script is not necessary.

set -eu

# Skip git-commands when installing from a TGZ package.
if [ -d .git ] ; then
  if ! git --version >/dev/null; then
    echo "git not installed"
    exit 1
  fi
  git submodule sync
  git submodule update --init
fi

rm -f ./configure
cp build-system/taler-build-scripts/configure ./configure
