bootstrap (1216B)
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 # Make sure that "git pull" et al. also update 14 # submodules to avoid accidental rollbacks. 15 git config --local submodule.recurse true 16 17 git submodule update --init 18 19 copy_configure() { 20 src=$1 21 dst=$2 22 rm -f $dst 23 cp $src $dst 24 # Try making the configure script read-only to prevent 25 # accidental changes in the wrong place. 26 chmod ogu-w $dst || true 27 } 28 29 # To enable a GNU-style build system, we copy a configure 30 # script to each package that can be installed 31 our_configure=build-system/taler-build-scripts/configure 32 copy_configure "$our_configure" ./configure 33 copy_configure "$our_configure" ./packages/taler-wallet-cli/configure 34 copy_configure "$our_configure" ./packages/anastasis-cli/configure 35 copy_configure "$our_configure" ./packages/bank-ui/configure 36 copy_configure "$our_configure" ./packages/taler-harness/configure 37 copy_configure "$our_configure" ./packages/taler-util/configure 38 copy_configure "$our_configure" ./packages/merchant-backoffice-ui/configure