From 805fc3a8649af780b1e5060ecda4cc71c8cb27c0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 20 Jun 2013 12:04:01 -0400 Subject: [PATCH] autogen.sh: only set up submodules if we have a .git directory This way we do the right thing for tarball builds. --- autogen.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index 3b4c281d76..54ae4ecef0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -19,9 +19,11 @@ PKG_NAME=NetworkManager cd $srcdir # Fetch submodules if needed -echo "+ Setting up submodules" -git submodule init -git submodule update +if test -d $srcdir/.git; then + echo "+ Setting up submodules" + git submodule init + git submodule update +fi gtkdocize || exit 1 autopoint --force