Always run 'git submodule update' when git is in use
[yazproxy-moved-to-github.git] / buildconf.sh
index 7187d30..a037772 100755 (executable)
@@ -1,5 +1,15 @@
 #!/bin/sh
-# $Id: buildconf.sh,v 1.12 2006-05-26 19:57:35 adam Exp $
+
+test -d config || mkdir config
+if test .git; then
+    if test -d m4/.git -a -d doc/common/.git; then
+        :
+    else
+        git submodule init
+    fi
+    git submodule update
+fi
+
 if automake --version|head -1 |grep '1\.[4-7]'; then
     echo "automake 1.4-1.7 is active. You should use automake 1.8 or later"
     if test -f /etc/debian_version; then