fix path
[oweals/gnunet.git] / bootstrap
1 #!/bin/sh
2 # This file is in the public domain.
3 echo "Removing folder 'libltdl'..."
4 rm -rf libltdl
5
6 # This is more portable than `which' but comes with
7 # the caveat of not(?) properly working on busybox's ash:
8 existence()
9 {
10     command -v "$1" >/dev/null 2>&1
11 }
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
27 if existence libtool || existence libtoolize || existence glibtoolize || existence slibtool; then
28     autoreconf -if
29     . "bin/pogen.sh"
30 else
31     echo "*** No libtoolize (libtool) or libtool found, please install it ***" >&2;
32     exit 1
33 fi