[libgrss] build: Support builddir != srcdir in autogen.sh



commit 830985db34c1bcad4fb9a4254cb2cdcd820c870a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 2 15:46:35 2016 +0100

    build: Support builddir != srcdir in autogen.sh
    
    Jhbuild defaults to a separate build directory, but autogen.sh modifies
    files inside the source directory.

 autogen.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index b715f6c..f493750 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,8 +8,12 @@ test -z "$srcdir" && srcdir=.
         exit 1
 }
 
+olddir=`pwd`
+
 PKG_NAME=`autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac"`
 
+cd "$srcdir"
+
 touch ChangeLog
 touch INSTALL
 
@@ -28,6 +32,8 @@ intltoolize --force --copy --automake || exit 1
 autoreconf --verbose --force --install -Wno-portability || exit 1
 { set +x; } 2>/dev/null
 
+cd "$olddir"
+
 if [ "$NOCONFIGURE" = "" ]; then
         set -x
         $srcdir/configure "$@" || exit 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]