Simplify autogen.sh



Currently autogen.sh requires that you first git submodule init. Failure
to do 'git submodule init' gives a cryptic error about a missing
Makefile.in.

To make it easier for people to start, empathy does the submodule stuff
in autogen.sh.

Here's a patch which implements that. Is there a bugzilla or something,
or is posting patches here the best way?

Cheers,

Stef
>From f8bb19eeeacb429477ab0e46b29a7e5f76f7ec68 Mon Sep 17 00:00:00 2001
From: Stef Walter <stefw gnome org>
Date: Mon, 30 Jul 2012 13:04:00 +0200
Subject: [PATCH] Automatically populate the git submodules in autogen.sh

---
 autogen.sh |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/autogen.sh b/autogen.sh
index 6035bc0..4e9fcae 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,5 +16,14 @@ mkdir -p m4
 
 autoreconf --force --install --verbose
 
+# Fetch submodules if needed
+if test ! -f src/libgsystem/README;
+then
+  echo "+ Setting up submodules"
+  git submodule init
+fi
+git submodule update
+
+
 cd $olddir
 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
-- 
1.7.10.4



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