From: Bruno Haible Date: Sat, 28 Dec 2024 19:16:40 +0000 (+0100) Subject: doc: Omit deprecated modules from the "Undocumented modules" index. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ecaaa549570b2c62ec98b511d9c72de21bef79f7;p=gnulib.git doc: Omit deprecated modules from the "Undocumented modules" index. * doc/Makefile (undocumented-modules.texi): Filter out the deprecated modules. --- diff --git a/ChangeLog b/ChangeLog index 0de411cb2f..fa0b16ed57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-12-28 Bruno Haible + + doc: Omit deprecated modules from the "Undocumented modules" index. + * doc/Makefile (undocumented-modules.texi): Filter out the deprecated + modules. + 2024-12-28 Simon Josefsson maintainer-makefile: Improve gnulib-version derivation. diff --git a/doc/Makefile b/doc/Makefile index 5f5307a9fc..343419f44a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -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 " 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) $<