changeset 27175:fc8ac5fcad48

--create-testdir without module names now means to use nearly all modules.
author Bruno Haible <bruno@clisp.org>
date Thu, 12 Oct 2006 11:43:46 +0000
parents 48b6f30eae9e
children 75068ae47af5
files ChangeLog gnulib-tool
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Oct 12 10:36:51 2006 +0000
+++ b/ChangeLog	Thu Oct 12 11:43:46 2006 +0000
@@ -1,3 +1,10 @@
+2006-10-11  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (func_usage): Make module names after --create-testdir
+	optional.
+	(func_create_testdir): If no module was specified, use nearly all
+	modules.
+
 2006-10-12  Jim Meyering  <jim@meyering.net>
 
 	Big performance improvement for fts-based tools that use FTS_NOSTAT.
--- a/gnulib-tool	Thu Oct 12 10:36:51 2006 +0000
+++ b/gnulib-tool	Thu Oct 12 11:43:46 2006 +0000
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-10-07 14:54:51 $'
+cvsdatestamp='$Date: 2006-10-12 11:43:46 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -69,7 +69,7 @@
 Usage: gnulib-tool --list
        gnulib-tool --import [module1 ... moduleN]
        gnulib-tool --update
-       gnulib-tool --create-testdir --dir=directory module1 ... moduleN
+       gnulib-tool --create-testdir --dir=directory [module1 ... moduleN]
        gnulib-tool --create-megatestdir --dir=directory [module1 ... moduleN]
        gnulib-tool --test --dir=directory module1 ... moduleN
        gnulib-tool --megatest --dir=directory [module1 ... moduleN]
@@ -2054,6 +2054,13 @@
 {
   testdir="$1"
   modules="$2"
+  if test -z "$modules"; then
+    # All modules together.
+    # Except config-h, which breaks all modules which use HAVE_CONFIG_H.
+    # Except fnmatch-posix, which conflicts with fnmatch-gnu. FIXME.
+    modules=`func_all_modules`
+    modules=`for m in $modules; do if test $m != config-h && test $m != fnmatch-posix; then echo $m; fi; done`
+  fi
   modules=`for m in $modules; do echo $m; done | LC_ALL=C sort -u`
 
   # Subdirectory names.