set -e
+oldpwd=$(pwd)
+topdir=$(dirname $0)
+cd $topdir
+
if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then
# This part is allowed to fail
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
intltoolize --force --automake
autoreconf --force --install --symlink
-
-libdir() {
- echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
-}
-
-args="\
---sysconfdir=/etc \
---localstatedir=/var \
---libdir=$(libdir /usr/lib) \
-$gtkdocargs"
-
-if [ ! -L /bin ]; then
-args="$args \
---with-rootprefix= \
---with-rootlibdir=$(libdir /lib) \
-"
-fi
-
-if [ "x$1" = "xc" ]; then
- ./configure CFLAGS='-g -O0' --enable-kdbus $args
- make clean
-elif [ "x$1" = "xg" ]; then
- ./configure CFLAGS='-g -Og' --enable-kdbus $args
- make clean
-else
- echo
- echo "----------------------------------------------------------------"
- echo "Initialized build system. For a common configuration please run:"
- echo "----------------------------------------------------------------"
- echo
- echo "./configure CFLAGS='-g -O0' --enable-kdbus $args"
- echo
-fi