From: Stef Walter Date: Mon, 30 Jul 2012 11:04:00 +0000 (+0200) Subject: Automatically populate the git submodules in autogen.sh X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1926 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=31d129fab4880a3ecae621d20f175e1ed7e039d3;p=ostree.git Automatically populate the git submodules in autogen.sh --- 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" "$@"