From 31d129fab4880a3ecae621d20f175e1ed7e039d3 Mon Sep 17 00:00:00 2001 From: Stef Walter 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 6035bc02..4e9fcaef 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" "$@"