diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -3,11 +3,6 @@ | |||
3 | echo "Removing folder 'libltdl'..." | 3 | echo "Removing folder 'libltdl'..." |
4 | rm -rf libltdl | 4 | rm -rf libltdl |
5 | 5 | ||
6 | # Install uncrustify format symlink (if possible) | ||
7 | ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null | ||
8 | |||
9 | echo "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: |
13 | existence() | 8 | existence() |
@@ -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 | |||
14 | if 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 | ||
20 | else | ||
21 | echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development" | ||
22 | fi | ||
23 | |||
24 | echo "checking for libtoolize / libtool... " | ||
25 | |||
26 | |||
18 | if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then | 27 | if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then |
19 | autoreconf -if | 28 | autoreconf -if |
20 | . "bin/pogen.sh" | 29 | . "bin/pogen.sh" |