sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

bootstrap (813B)


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