Always run 'git submodule update' when git is in use
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 26 Aug 2008 09:18:18 +0000 (11:18 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 26 Aug 2008 09:18:18 +0000 (11:18 +0200)
buildconf.sh

index 4fd0a4d..dc0ba93 100755 (executable)
@@ -7,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