[totem] build: Update submodules within the srcdir



commit c6d15ac161a29d3f1833546a941ab39167657a2c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jun 3 13:00:30 2016 +0100

    build: Update submodules within the srcdir
    
    We should only call `gnome-autogen.sh` from the build directory.

 autogen.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index c01241a..235ee4e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,6 +4,8 @@
 srcdir=`dirname $0`
 test -z "$srcdir" && srcdir=.
 
+olddir=`pwd`
+
 PKG_NAME="totem"
 ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"
 
@@ -13,6 +15,7 @@ ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"
     exit 1
 }
 
+cd "$srcdir"
 echo "+ Setting up submodules"
 git submodule update --init --recursive
 
@@ -21,4 +24,5 @@ which gnome-autogen.sh || {
        exit 1
 }
 
+cd "$olddir"
 REQUIRED_PKG_CONFIG_VERSION=0.17.1 REQUIRED_AUTOMAKE_VERSION=1.11 USE_GNOME2_MACROS=1 . gnome-autogen.sh 
--enable-debug "$@"


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