summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-06-20 12:04:01 -0400
committerDan Williams <dcbw@redhat.com>2013-06-20 16:14:08 -0500
commit805fc3a8649af780b1e5060ecda4cc71c8cb27c0 (patch)
tree846ce85ad3f18798621d9cbc72e6430ea47ee402 /autogen.sh
parent0b07a5301e93e851280b5dba0245899826860b35 (diff)
downloadNetworkManager-805fc3a8649af780b1e5060ecda4cc71c8cb27c0.tar.gz
autogen.sh: only set up submodules if we have a .git directory
This way we do the right thing for tarball builds.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files 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