Re: doc: Update macro list in gnulib-cache.m4 documentation.

2024-04-29 Thread Bruno Haible
Collin Funk wrote:
> I've applied the attached patch updating the macro list in the
> gnulib-cache.m4 documentation.

Thanks! Appreciated.






doc: Update macro list in gnulib-cache.m4 documentation.

2024-04-28 Thread Collin Funk
I've applied the attached patch updating the macro list in the
gnulib-cache.m4 documentation.

The macros seemed to match the order of the sed invocation in
func_import of gnulib-tool.sh, so most of it was just copying from
there and adjusting the gnulib-tool --help messages to fit the
existing documentation.

CollinFrom 431b58497c6ae0e2bc79c8ed41b3dcfc32248405 Mon Sep 17 00:00:00 2001
From: Collin Funk 
Date: Sun, 28 Apr 2024 15:52:27 -0700
Subject: [PATCH] doc: Update macro list in gnulib-cache.m4 documentation.

* doc/gnulib-tool.texi (Modified imports): Add missing macros from the
sed invocation in func_import of gnulib-tool.sh.
---
 ChangeLog|  6 
 doc/gnulib-tool.texi | 79 
 2 files changed, 85 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 137830499a..c52dee0b6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-28  Collin Funk  
+
+	doc: Update macro list in gnulib-cache.m4 documentation.
+	* doc/gnulib-tool.texi (Modified imports): Add missing macros from the
+	sed invocation in func_import of gnulib-tool.sh.
+
 2024-04-28  Collin Funk  
 
 	doc: Mention AC_CONFIG_MACRO_DIRS in configure.ac.
diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi
index 1a34673eb2..9ed30c2055 100644
--- a/doc/gnulib-tool.texi
+++ b/doc/gnulib-tool.texi
@@ -374,10 +374,45 @@ @node Modified imports
 
 In the @file{gnulib-cache.m4} file, the macros have the following meaning:
 @table @code
+@item gl_LOCAL_DIR
+The argument is a colon separated list of local directories where
+@code{gnulib-tool} will search before looking at gnulib's directory.
+Corresponds to the @samp{--local-dir} command line argument.
+
 @item gl_MODULES
 The argument is a space separated list of the requested modules, not including
 dependencies.
 
+@item gl_WITH_OBSOLETE
+The presence of this macro corresponds to the @samp{--with-obsolete} command
+line argument.  It takes no arguments.
+
+@item gl_WITH_CXX_TESTS
+The presence of this macro corresponds to the @samp{--with-c++-tests} command
+line argument and to the absence of the @samp{--without-c++-tests} command line
+argument.  It takes no arguments.
+
+@item gl_WITH_LONGRUNNING_TESTS
+The presence of this macro corresponds to the @samp{--with-longrunning-tests}
+command line argument and to the absence of the
+@samp{--without-longrunning-tests} command line argument.  It takes no
+arguments.
+
+@item gl_WITH_PRIVILEGED_TESTS
+The presence of this macro corresponds to the @samp{--with-longrunning-tests}
+command line argument and to the absence of the
+@samp{--without-longrunning-tests} command line argument.  It takes no
+arguments.
+
+@item gl_WITH_UNPORTABLE_TESTS
+The presence of this macro corresponds to the @samp{--with-unportable-tests}
+command line argument and to the absence of the
+@samp{--without-unportable-tests} command line argument.  It takes no arguments.
+
+@item gl_WITH_ALL_TESTS
+The presence of this macro corresponds to the @samp{--with-all-tests} command
+line argument.  It takes no arguments.
+
 @item gl_AVOID
 The argument is a space separated list of modules that should not be used,
 even if they occur as dependencies.  Corresponds to the @samp{--avoid}
@@ -393,10 +428,22 @@ @node Modified imports
 M4 macros (*.m4 files).  Corresponds to the @samp{--m4-base} command line
 argument.
 
+@item gl_PO_BASE
+The argument is the relative file name of the directory containing *.po files.
+Corresponds to the @samp{--po-base} command line argument.
+
+@item gl_DOC_BASE
+The argument is the relative file name of the directory containing documentation
+files.  Corresponds to the @samp{--doc-base} command line argument.
+
 @item gl_TESTS_BASE
 The argument is the relative file name of the directory containing the gnulib
 unit test files.  Corresponds to the @samp{--tests-base} command line argument.
 
+@item gl_WITH_TESTS
+The presence of this macro corresponds to the @samp{--with-tests} command line
+argument.  It takes no arguments.
+
 @item gl_LIB
 The argument is the name of the library to be created.  Corresponds to the
 @samp{--lib} command line argument.
@@ -407,6 +454,24 @@ @node Modified imports
 value must be 2 or 3) corresponds to the @samp{--lgpl=@var{arg}} command line
 argument.
 
+@item gl_MAKEFILE_NAME
+The argument is the name of the makefile in the source-base and tests-base
+directories.  Corresponds to the @samp{--makefile-name} command line argument.
+
+@item gl_TESTS_MAKEFILE_NAME
+The argument is the name of the makefile in the tests-base directory.
+Corresponds to the @samp{--tests-makefile-name} command line argument.
+
+@item gl_AUTOMAKE_SUBDIR
+The presence of this macro corresponds to the @samp{--automake-subdir} command
+line argument.  It takes no arguments.
+
+@item gl_CONDITIONAL_DEPENDENCIES
+The presence of this macro corresponds to the @samp{--conditional-dependencies}
+command line argument and to the absence of the
+@samp{--no-conditional-dependencies} command