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