2011-03-11 06:43:59 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Create configure and makefile stuff...
|
|
|
|
#
|
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
# Git hooks should come before autoreconf.
|
|
|
|
if test -d .git; then
|
2013-09-20 21:34:29 +04:00
|
|
|
if ! test -d .git/hooks; then
|
2013-09-15 11:13:30 +04:00
|
|
|
mkdir .git/hooks
|
|
|
|
fi
|
|
|
|
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit
|
|
|
|
fi
|
|
|
|
|
|
|
|
# If this is a source checkout then call autoreconf with error as well
|
2012-10-26 10:06:06 +04:00
|
|
|
if test -d .git; then
|
|
|
|
WARNINGS="all,error"
|
|
|
|
else
|
|
|
|
WARNINGS="all"
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoreconf --install --force --verbose
|
2013-03-13 21:06:08 +04:00
|
|
|
|