]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Checkout gnulib if GNULIB_TOOL is not set.
authorBruno Haible <bruno@clisp.org>
Wed, 2 Aug 2006 14:42:41 +0000 (14:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:50 +0000 (12:13 +0200)
ChangeLog
autogen.sh

index 5b7789ec8ff2129c8a2f1a49e4c9eecfa1ce7956..0fc4676941b99d9a280c303dbfe0db81298d4dfe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-31  Bruno Haible  <bruno@clisp.org>
+
+       * autogen.sh: If GNULIB_TOOL is not set, make an anonymous checkout
+       of gnulib.
+
 2006-07-30  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-local: New directory.
index d2637b1eae65efccb45a26c631717ec489e76eb3..d17d4dd51e5a936021bb18ee8a0e12ca73cbe81b 100755 (executable)
@@ -3,8 +3,10 @@
 # configure files with new versions of autoconf or automake.
 #
 # This script requires autoconf-2.60 and automake-1.8.2..1.9 in the PATH.
-# It also requires the GNULIB_TOOL environment variable pointing to the
-# gnulib-tool script in a gnulib checkout.
+# It also requires either
+#   - the GNULIB_TOOL environment variable pointing to the gnulib-tool script
+#     in a gnulib checkout, or
+#   - the cvs program in the PATH and an internet connection.
 
 # Copyright (C) 2003-2006 Free Software Foundation, Inc.
 #
@@ -30,6 +32,23 @@ else
   quick=false
 fi
 
+if test -z "$GNULIB_TOOL"; then
+  # Check out gnulib in a subdirectory 'gnulib'.
+  GNULIB_CVS_ROOT=':pserver:anonymous@cvs.savannah.gnu.org:/sources/gnulib'
+  GNULIB_CVS_REPOSITORY='gnulib'
+  if test -d gnulib; then
+    (cd gnulib && cvs update -d -P)
+  else
+    cvs -d "$GNULIB_CVS_ROOT" checkout $GNULIB_CVS_REPOSITORY
+  fi
+  # Now it should contain a gnulib-tool.
+  if test -f gnulib/gnulib-tool; then
+    GNULIB_TOOL=`pwd`/gnulib/gnulib-tool
+  else
+    echo "** warning: gnulib-tool not found" 1>&2
+  fi
+fi
+# Skip the gnulib-tool step if gnulib-tool was not found.
 if test -n "$GNULIB_TOOL"; then
   # In gettext-runtime:
   # In gettext-tools: