taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

bootstrap (744B)


      1 #!/bin/sh
      2 
      3 if ! git --version >/dev/null; then
      4   echo "git not installed"
      5   exit 1
      6 fi
      7 
      8 git submodule update --init
      9 
     10 # This is more portable than `which' but comes with
     11 # the caveat of not(?) properly working on busybox's ash:
     12 existence()
     13 {
     14     command -v "$1" >/dev/null 2>&1
     15 }
     16 
     17 
     18 if existence uncrustify; then
     19     echo "Installing uncrustify hook and configuration"
     20     # Install uncrustify format symlink (if possible)
     21     ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null
     22     # Install pre-commit hook (if possible)
     23     ln -s ../../contrib/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null
     24 else
     25     echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development"
     26 fi
     27 
     28 autoreconf -fi