summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-12-25 12:19:13 +0100
committerBruno Haible <bruno@clisp.org>2021-12-25 12:19:13 +0100
commit83948c64d10c77fb964e6523a9524729d6a66f32 (patch)
tree7fdba0fbef79e480eff76fe4dfe19892a69ab9eb /gnulib-tool
parent792a728bd657b07e2444034b160e884fe1f49375 (diff)
downloadgnulib-83948c64d10c77fb964e6523a9524729d6a66f32.tar.gz
gnulib-tool: Respect applicability 'all' without --single-configure.
* gnulib-tool (func_verify_tests_module): Treat modules with applicability 'all' like 'tests' modules, not like 'main' modules.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool30
1 files changed, 17 insertions, 13 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 0d4f246d8c..c2607c95a0 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -1894,19 +1894,6 @@ func_verify_nontests_module ()
esac
}
-# func_verify_tests_module
-# verifies a module name, considering only tests modules
-# Input:
-# - local_gnulib_path from --local-dir
-# - module module name argument
-func_verify_tests_module ()
-{
- case "$module" in
- *-tests ) func_verify_module ;;
- * ) module= ;;
- esac
-}
-
# Suffix of a sed expression that extracts a particular field from a
# module description.
# A field starts with a line that contains a keyword, such as 'Description',
@@ -2793,6 +2780,23 @@ func_get_tests_module ()
fi
}
+# func_verify_tests_module
+# verifies a module name, considering only tests modules and modules with
+# applicability 'all'.
+# Input:
+# - local_gnulib_path from --local-dir
+# - modcache true or false, from --cache-modules/--no-cache-modules
+# - module module name argument
+func_verify_tests_module ()
+{
+ func_verify_module
+ if test -n "$module"; then
+ if test `func_get_applicability $module` = main; then
+ module=
+ fi
+ fi
+}
+
# func_get_dependencies_recursively module
# Input:
# - local_gnulib_path from --local-dir