Files
federated-calendar/autogen.sh
T
Erick Perez Castellanos cfa5f530d2 build: fixed builddir != srcdir situations
Started to updating the build system in order to get rid of intltool
2016-03-15 13:14:09 -05:00

32 lines
539 B
Bash
Executable File

#!/bin/sh
# Run this to generate all the initial makefiles, etc.
set -e
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
olddir=`pwd`
cd $srcdir
mkdir -p m4
autoreconf --verbose --force --install || exit $?
intltoolize --force --copy --automake || exit $?
if test -z "$NOCONFIGURE"; then
run_configure=true
for arg in $*; do
case $arg in
--no-configure)
run_configure=false
;;
*)
;;
esac
done
else
run_configure=false
fi
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"