[gcab] build: Ensure that autogen.sh supports builddir != srcdir



commit 1269f825339916895d67571b23190ff3b6cb03ca
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 2 15:16:23 2016 +0100

    build: Ensure that autogen.sh supports builddir != srcdir
    
    The tools that modify the build system files need to, sadly, do that
    inside the srcdir.
    
    This change is necessary because jhbuild recently switched the default
    to build in a separate directory.

 autogen.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 6c864bc..9e61699 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,12 +4,19 @@ set -e # exit on errors
 
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
+
+olddir=`pwd`
+
 mkdir -p "$srcdir/m4"
 
+cd "$srcdir"
+
 gtkdocize
 autoreconf -v --force --install
 intltoolize -f
 
+cd "$olddir"
+
 if [ -z "$NOCONFIGURE" ]; then
     "$srcdir"/configure --enable-gtk-doc "$@"
 fi


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