]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Omit deprecated modules from the "Undocumented modules" index.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Dec 2024 19:16:40 +0000 (20:16 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Dec 2024 19:16:40 +0000 (20:16 +0100)
* doc/Makefile (undocumented-modules.texi): Filter out the deprecated
modules.

ChangeLog
doc/Makefile

index 0de411cb2f8fc99697bfdfe02ba17cf58de4fe9d..fa0b16ed5745a2f3d0b9b6a98b5fb5a0339ce7ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-28  Bruno Haible  <bruno@clisp.org>
+
+       doc: Omit deprecated modules from the "Undocumented modules" index.
+       * doc/Makefile (undocumented-modules.texi): Filter out the deprecated
+       modules.
+
 2024-12-28  Simon Josefsson  <simon@josefsson.org>
 
        maintainer-makefile: Improve gnulib-version derivation.
index 5f5307a9fc6bd2226c1fc015c2d8589cb06a7077..343419f44a75b420a0638b5f7e22434b2f2a76d4 100644 (file)
@@ -24,8 +24,11 @@ tex_opts = -I ../build-aux
 undocumented-modules.texi: force
        grep -h '^@mindex ' `find . -name '*.texi'` | sed -e 's/@mindex //' | LC_ALL=C sort -u > documented-modules.tmp
        (cd .. && ./gnulib-tool --list) | LC_ALL=C sort -u > all-modules.tmp
-       LC_ALL=C join -v1 all-modules.tmp documented-modules.tmp | sed -e 's/^/@umindex /' > undocumented-modules.texi
-       rm -f documented-modules.tmp all-modules.tmp
+       LC_ALL=C join -v1 all-modules.tmp documented-modules.tmp > undocumented-modules.tmp
+# For testing whether a module is deprecated, "./gnulib-tool --extract-status <module>" is a bit slow, so use grep instead.
+       modules=`cat undocumented-modules.tmp`; (cd ../modules && grep -l '^deprecated$$' $$modules) > deprecated-undocumented-modules.tmp
+       LC_ALL=C join -v1 undocumented-modules.tmp deprecated-undocumented-modules.tmp | sed -e 's/^/@umindex /' > undocumented-modules.texi
+       rm -f documented-modules.tmp all-modules.tmp undocumented-modules.tmp deprecated-undocumented-modules.tmp
 
 %.info: %.texi undocumented-modules.texi
        $(MAKEINFO) $(manual_opts) $<