bootstrap (677B)
1 #!/bin/sh 2 3 # Bootstrap the repository. Used when the repository is checked out from git. 4 # When using the source tarball, running this script is not necessary. 5 6 set -eu 7 8 if ! git --version >/dev/null; then 9 echo "git not installed" 10 exit 1 11 fi 12 13 git submodule update --init 14 15 copy_configure() { 16 src=$1 17 dst=$2 18 rm -f $dst 19 cp $src $dst 20 # Try making the configure script read-only to prevent 21 # accidental changes in the wrong place. 22 chmod ogu-w $dst || true 23 } 24 25 # To enable a GNU-style build system, we copy a configure 26 # script to each package that can be installed 27 our_configure=build-system/taler-build-scripts/configure 28 copy_configure "$our_configure" ./configure