2015-01-08 18:37:20 +01:00
|
|
|
#!/bin/sh
|
2019-09-18 19:45:10 +02:00
|
|
|
git submodule update --init
|
2019-10-05 15:12:11 +02:00
|
|
|
|
|
|
|
# This is more portable than `which' but comes with
|
|
|
|
# the caveat of not(?) properly working on busybox's ash:
|
|
|
|
existence()
|
|
|
|
{
|
|
|
|
command -v "$1" >/dev/null 2>&1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if existence uncrustify; then
|
|
|
|
echo "Installing uncrustify hook and configuration"
|
|
|
|
# Install uncrustify format symlink (if possible)
|
|
|
|
ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null
|
|
|
|
# Install pre-commit hook (if possible)
|
|
|
|
ln -s ../../contrib/uncrustify_precommit .git/hooks/pre-commit 2> /dev/null
|
|
|
|
else
|
|
|
|
echo "Uncrustify not detected, hook not installed. Please install uncrustify if you plan on doing development"
|
|
|
|
fi
|
|
|
|
|
2019-09-26 13:55:48 +02:00
|
|
|
autoreconf -fi
|