Auto add Git submodules in buildconf.sh.
authorAdam Dickmeiss <adam@indexdata.dk>
Sat, 15 Mar 2008 21:26:38 +0000 (22:26 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Sat, 15 Mar 2008 21:26:38 +0000 (22:26 +0100)
buildconf.sh

index 920ab82..a6c4a32 100755 (executable)
@@ -8,6 +8,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
+    git submodule update
+fi
 
 if [ "`uname -s`" = FreeBSD ]; then
     # FreeBSD intalls the various auto* tools with version numbers