diff options
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,22 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | git submodule update --init | 2 | git 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: | ||
6 | existence() | ||
7 | { | ||
8 | command -v "$1" >/dev/null 2>&1 | ||
9 | } | ||
10 | |||
11 | |||
12 | if 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 | ||
18 | else | ||
19 | echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development" | ||
20 | fi | ||
21 | |||
3 | autoreconf -fi | 22 | autoreconf -fi |