express: Modified autogen.sh to enable building from any directory.

Summary: Currently we can build from only src directory. So modified autogen.sh to be able to build from other directories as well.

Reviewers: devilhorns

Differential Revision: https://phab.enlightenment.org/D1995
This commit is contained in:
Srivardhan Hebbar 2015-02-19 08:50:34 -05:00 committed by Chris Michael
parent 7c191eef05
commit cf024c2e42
1 changed files with 18 additions and 12 deletions

View File

@ -1,18 +1,24 @@
#!/bin/sh
rm -rf autom4te.cache
rm -f aclocal.m4 ltmain.sh
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
(
cd "$srcdir" &&
(
rm -rf autom4te.cache
rm -f aclocal.m4 ltmain.sh
touch README
touch ABOUT-NLS
touch README
touch ABOUT-NLS
echo "Running autopoint..." ; autopoint -f || :
echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
echo "Running autoconf..." ; autoconf || exit 1
echo "Running autoheader..." ; autoheader || exit 1
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
echo "Running autopoint..." ; autopoint -f || :
echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
echo "Running autoconf..." ; autoconf || exit 1
echo "Running autoheader..." ; autoheader || exit 1
echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
)
)
if [ -z "$NOCONFIGURE" ]; then
./configure "$@"
$srcdir/configure "$@"
fi