+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.
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) $<