]> Savannah Git Hosting - gnulib.git/commitdiff
More updates regarding the 'Useable-in-testdir' sections.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 01:35:23 +0000 (03:35 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 01:35:54 +0000 (03:35 +0200)
* gnulib-tool.sh (sed_extract_prog, sed_extract_field_header): Recognize
the 'Useable-in-testdir' sections.
* modules/TEMPLATE-EXTENDED: Add a 'Useable-in-testdir' section.
* doc/gnulib.texi (Module description): Move new text.

ChangeLog
doc/gnulib.texi
gnulib-tool.sh
modules/TEMPLATE-EXTENDED

index 0974283d46bc081dda6286386d8989ec3282c664..a809663d012960499293a998fed050b0d2a8ccbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-07-28  Bruno Haible  <bruno@clisp.org>
+
+       More updates regarding the 'Useable-in-testdir' sections.
+       * gnulib-tool.sh (sed_extract_prog, sed_extract_field_header): Recognize
+       the 'Useable-in-testdir' sections.
+       * modules/TEMPLATE-EXTENDED: Add a 'Useable-in-testdir' section.
+       * doc/gnulib.texi (Module description): Move new text.
+
 2024-07-28  Collin Funk  <collin.funk1@gmail.com>
 
        doc: Document the 'Useable-in-testdir' field in module descriptions.
index 3f2d1ee44d918b8f73161068f5027cd02e899133..33e82f2907641fe1ea3a42b8edcabdf3277ab46e 100644 (file)
@@ -411,10 +411,6 @@ One sentence is enough.  For example, if it defines a single function
 Gnulib's documentation generator will automatically convert the first part
 to a hyperlink when it has this form.
 
-@item Usable-in-testdir
-This field should contain @samp{no} if the module cannot be used in a
-test directory created with @code{gnulib-tool --create-testdir}.
-
 @item Status
 This field is either empty/absent, or contains the word @samp{obsolete}.  In
 the latter case, @command{gnulib-tool} will, unless the option
@@ -439,6 +435,10 @@ is applied to @code{@var{tests_base}/Makefile.am} (normally
 both @code{Makefile.am}s.  This is useful for modules which provide
 Makefile.am macros rather than compiled source code.
 
+@item Usable-in-testdir
+This field should contain @samp{no} if the module cannot be used in a
+test directory created with @code{gnulib-tool --create-testdir}.
+
 @item Files
 This field contains a newline separated list of the files that are part of
 the module.  @code{gnulib-tool} copies these files into the package that
index 0efc25f0dc2375173dd94215fd7fcc87d709530b..de9e3c4b50cedb41b35fa7f763d36f2cd06fb98b 100755 (executable)
@@ -1951,6 +1951,7 @@ sed_extract_prog=':[       ]*$/ {
     s/^Status:[         ]*$//
     s/^Notice:[         ]*$//
     s/^Applicability:[  ]*$//
+    s/^Usable-in-testdir:[      ]*$//
     s/^Files:[  ]*$//
     s/^Depends-on:[     ]*$//
     s/^configure\.ac-early:[    ]*$//
@@ -1975,6 +1976,7 @@ sed_extract_field_header='
   s/^Status:[   ]*$/status/
   s/^Notice:[   ]*$/notice/
   s/^Applicability:[    ]*$/applicability/
+  s/^Usable-in-testdir:[        ]*$/usability_in_testdir/
   s/^Files:[    ]*$/files/
   s/^Depends-on:[       ]*$/dependson/
   s/^configure\.ac-early:[      ]*$/configureac_early/
index c9e90518957aa73d313c2d34a6c1705850d240e5..af91e86b9622383f3ff791bc9168b2190f4819fd 100644 (file)
@@ -8,6 +8,8 @@ Notice:
 
 Applicability:
 
+Usable-in-testdir:
+
 Files:
 
 Depends-on: