taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

bootstrap (868B)


      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 --recursive
     18 
     19 # To enable a GNU-style build system, we copy a configure
     20 # script to each package that can be installed
     21 configure_targets=./configure
     22 for makefile in ./packages/*/Makefile; do
     23   configure_targets="$configure_targets ${makefile%/Makefile}/configure"
     24 done
     25 
     26 for dst in $configure_targets; do
     27   rm -f "$dst"
     28   cp build-system/configure.sh "$dst"
     29   # Make generated scripts read-only to discourage editing the copies.
     30   chmod a-w "$dst" || true
     31 done