Always run 'git submodule update' when git is in use
[pazpar2-moved-to-github.git] / buildconf.sh
index a6c4a32..dc0ba93 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-# $Id: buildconf.sh,v 1.4 2007-04-10 08:11:18 adam Exp $
 
 automake=automake
 aclocal=aclocal
@@ -8,10 +7,12 @@ libtoolize=libtoolize
 autoheader=autoheader
 
 test -d config || mkdir config
-if test -d m4/.git -a -d doc/common/.git; then
-    :
-else
-    git submodule init
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+        :
+    else
+        git submodule init
+    fi
     git submodule update
 fi