Checkout gnulib if the directory is empty.
authorErik Nolte <erik_nolte@acm.org>
Thu, 6 Oct 2011 20:29:54 +0000 (14:29 -0600)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 14 Oct 2011 09:40:45 +0000 (10:40 +0100)
autogen.sh

index 0afb7ed..fce31bb 100755 (executable)
@@ -1,5 +1,10 @@
 #!/bin/sh -
 
+if [ -z "$(ls gnulib 2>/dev/null)" ]
+then
+    git clone git://git.savannah.gnu.org/gnulib.git
+fi
+
 ./gnulib/gnulib-tool --update
 
 export AUTOMAKE='automake --foreign --add-missing'