summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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