summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2010-02-27 22:48:55 +0100
committerEric Blake <eblake@redhat.com>2010-03-01 21:50:01 -0700
commitd7879f327c28e6a206aa93d009e27224cf6b4b16 (patch)
treee189c09e1b6f6b6f9d9415d8ac2d81517954c68f
parentf2d83a031ed53ac5ab28b3f23d06b8ea7b74fdf6 (diff)
downloadm4-d7879f327c28e6a206aa93d009e27224cf6b4b16.tar.gz
Support bootstrap --gnulib-srcdir=DIR.
I saw `bootstrap' doesn't accept --gnulib-srcdir as it is already done by other projects using gnulib. It doesn't add a new feature as it can be already done specifying GNULIB_SRCDIR, it just make the script more similar to scripts used by other projects doing a bootstrap from gnulib. * bootstrap: Add --gnulib-srcdir option, which overrides GNULIB_SRCDIR, for consistency with gnulib bootstrap. Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--ChangeLog6
-rwxr-xr-xbootstrap10
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 29e17684..65ad900a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-02 Giuseppe Scrivano <gscrivano@gnu.org> (tiny change)
+
+ Support bootstrap --gnulib-srcdir=DIR.
+ * bootstrap: Add --gnulib-srcdir option, which overrides
+ GNULIB_SRCDIR, for consistency with gnulib bootstrap.
+
2010-03-01 Eric Blake <eblake@redhat.com>
Mention release of version 1.4.14.
diff --git a/bootstrap b/bootstrap
index 058eb1c7..2b2c044a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# bootstrap (GNU M4) version 2010-01-05
+# bootstrap (GNU M4) version 2010-03-02
# Written by Gary V. Vaughan <gary@gnu.org>
# Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
@@ -24,6 +24,12 @@
# Usage: $progname [options]
# -f --force bootstrap even when sources are not from git
+# --gnulib-srcdir=DIRNAME
+# Specify the local directory where gnulib
+# sources reside. Use this if you already
+# have gnulib sources on your machine, and
+# do not want to waste your bandwidth downloading
+# them again. Defaults to $GNULIB_SRCDIR.
# -v --version print version information
# -h,-? --help print short or long help message
@@ -190,6 +196,8 @@ func_update ()
case $opt in
# Separate optargs to short options:
-f|--force) vcs_only_file= ;;
+ --gnulib-srcdir=*)
+ GNULIB_SRCDIR=`expr "X$opt" : 'X--gnulib-srcdir=\(.*\)'` ;;
-\?|-h) func_usage ;;
--help) func_help ;;
--version) func_version ;;