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