diff options
author | Florian Dold <florian@dold.me> | 2023-02-23 23:24:06 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-23 23:24:20 +0100 |
commit | 245e2ae15c1f770bf6e8953fe951795a9d2461ea (patch) | |
tree | ce21a2821ba22b64216d3cfc3a261f1bfb79db05 /bootstrap | |
parent | 8a66f6c11d5cb2c23be3fe263a5e9b85f5df8da0 (diff) | |
download | taler-merchant-demos-0.9.2.tar.gz taler-merchant-demos-0.9.2.tar.bz2 taler-merchant-demos-0.9.2.zip |
use venv for installationv0.9.2
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 29 |
1 files changed, 26 insertions, 3 deletions
@@ -1,5 +1,28 @@ #!/bin/sh -# This bootstrap script currently does nothing, but -# is there for uniformity, since almost all our other -# repos have a bootstrap script. +# 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 + +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 +} + +# To enable a GNU-style build system, we copy a configure +# script to each package that can be installed +our_configure=build-system/taler-build-scripts/configure +copy_configure "$our_configure" ./configure |