2019-10-12 00:28:33 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-10-14 19:09:12 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
if ! git --version >/dev/null; then
|
|
|
|
echo "git not installed"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
git submodule update --init
|
2022-10-28 14:58:08 +02:00
|
|
|
|
|
|
|
copy_configure() {
|
|
|
|
src=$1
|
|
|
|
dst=$2
|
|
|
|
rm -f $dst
|
|
|
|
cp $src $dst
|
|
|
|
# Try making the configure script read-only to prevent
|
|
|
|
# accidental changes in the wrong place.
|
|
|
|
chmod ogu-w $dst || true
|
|
|
|
}
|
2022-10-31 12:02:09 +01:00
|
|
|
|
|
|
|
# To enable a GNU-style build system, we copy a configure
|
|
|
|
# script to each package that can be installed
|
2022-10-28 14:58:08 +02:00
|
|
|
our_configure=build-system/taler-build-scripts/configure
|
|
|
|
copy_configure "$our_configure" ./configure
|
|
|
|
copy_configure "$our_configure" ./packages/taler-wallet-cli/configure
|
2022-10-31 12:02:09 +01:00
|
|
|
copy_configure "$our_configure" ./packages/demobank-ui/configure
|
2022-11-04 14:24:29 +01:00
|
|
|
copy_configure "$our_configure" ./packages/merchant-backoffice-ui/configure
|
2023-01-05 22:44:01 +01:00
|
|
|
copy_configure "$our_configure" ./packages/taler-harness/configure
|