[gnome-boxes] build: Support non-srcdir builds



commit 0c4402f8159ea1ff0a1a963696bf01d26c7c56b7
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jun 3 15:20:10 2016 +0100

    build: Support non-srcdir builds
    
    The autogen.sh script should call the ancillary tools that modify the
    build from within the source directory, and call the configure script
    from the build directory.

 autogen.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 0360ecd..5b679c9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,10 +5,14 @@ set -e # exit on errors
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
+olddir=`pwd`
+
+cd "$srcdir"
 git submodule update --init --recursive
 autoreconf -v --force --install
 intltoolize -f
 
+cd "$olddir"
 if [ -z "$NOCONFIGURE" ]; then
     "$srcdir"/configure --enable-maintainer-mode --enable-vala --enable-debug ${1+"$@"}
 fi


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