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

index d71be7a..a037772 100755 (executable)
@@ -1,10 +1,12 @@
 #!/bin/sh
 
 test -d config || mkdir config
 #!/bin/sh
 
 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
 
     git submodule update
 fi