From: Bruno Haible Date: Sun, 21 Apr 2024 11:28:57 +0000 (+0200) Subject: gnulib-tool.sh: In --create-testdir, just warn about a bad module name. X-Git-Tag: v1.0~20 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a730eac4de00c4696259ccdd5c511a2201c575c1;p=gnulib.git gnulib-tool.sh: In --create-testdir, just warn about a bad module name. * gnulib-tool.sh (func_create_testdir): Validate the modules list. --- diff --git a/ChangeLog b/ChangeLog index c57a2392a8..5a10b83411 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-04-21 Bruno Haible + + gnulib-tool.sh: In --create-testdir, just warn about a bad module name. + * gnulib-tool.sh (func_create_testdir): Validate the modules list. + 2024-04-21 Collin Funk gnulib-tool.py: Don't fail when given a bad module name. diff --git a/gnulib-tool.sh b/gnulib-tool.sh index 5f0c6f530e..b486e99b1e 100755 --- a/gnulib-tool.sh +++ b/gnulib-tool.sh @@ -6504,6 +6504,9 @@ func_create_testdir () # Except lib-ignore, which leads to link errors when Sun C++ is used. FIXME. modules=`func_all_modules` modules=`for m in $modules; do case $m in config-h | non-recursive-gnulib-prefix-hack | timevar | mountlist | lib-ignore) ;; *) echo $m;; esac; done` + else + # Validate the list of specified modules. + modules=`for module in $modules; do func_verify_module; if test -n "$module"; then echo "$module"; fi; done` fi specified_modules="$modules"