aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap19
1 files changed, 19 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 1ad18f7bf..0d35d01ce 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,3 +1,22 @@
1#!/bin/sh 1#!/bin/sh
2git submodule update --init 2git submodule update --init
3
4# This is more portable than `which' but comes with
5# the caveat of not(?) properly working on busybox's ash:
6existence()
7{
8 command -v "$1" >/dev/null 2>&1
9}
10
11
12if existence uncrustify; then
13 echo "Installing uncrustify hook and configuration"
14 # Install uncrustify format symlink (if possible)
15 ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null
16 # Install pre-commit hook (if possible)
17 ln -s ../../contrib/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null
18else
19 echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development"
20fi
21
3autoreconf -fi 22autoreconf -fi