diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-06-02 15:13:27 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-06-02 15:14:26 +0100 |
commit | 94169859eee470fd548d32ffd7a526a9212e378f (patch) | |
tree | 7cf1ba792bc325ba141b5e2fa36b669c2d4db0ba | |
parent | dcd096d5cfe954595ab80c11004c6a3a41001922 (diff) | |
download | yelp-94169859eee470fd548d32ffd7a526a9212e378f.tar.gz |
build: Ensure that autogen.sh works when builddir != srcdir
We need to switch directories, because the tools that modify the build
system files, sadly, need to operate in the srcdir.
This change is required in order to cope with the jhbuild change of
default to enable separate build directories.
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,11 +4,15 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. +olddir=`pwd` + (test -f $srcdir/configure.ac) || { echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory" exit 1 } +cd "$srcdir" + PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"` if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then @@ -32,6 +36,8 @@ gtkdocize --copy || exit 1 intltoolize --force --copy --automake || exit 1 autoreconf --verbose --force --install -Wno-portability || exit 1 +cd "$olddir" + if [ "$NOCONFIGURE" = "" ]; then $srcdir/configure "$@" || exit 1 |