1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 09:21:58 +02:00

doc: fix pdf generation

* doc/coreutils.texi: Explicitly supply empty arguments to macros,
as dvi (a required prerequisite to pdf) is more strict in its
handling of macro arguments.
* cfg.mk (sc_texi_ensure_empty_option_args): Add a syntax check,
since this is not verified in the default build.
Reported by Collin Funk.
This commit is contained in:
Pádraig Brady
2025-12-08 14:15:00 +00:00
parent cc3cb220c3
commit 0013f0e2ad
2 changed files with 711 additions and 706 deletions

5
cfg.mk
View File

@@ -372,6 +372,11 @@ sc_texi_long_option_escaped: doc/coreutils.info
@grep ' [^ ]' '$<' \
&& { echo 1>&2 '$@: found unquoted --long-option'; exit 1; } || :
# pdf (and dvi) generation requires explicit empty args (trailing comma)
sc_texi_ensure_empty_option_args:
@grep '^@optItem[^,]*,[^,]*$$' doc/*.texi && { echo 1>&2 \
'$@: Use explicit empty argument to @optItem[x]'; exit 1; } || :
# Ensure all man/*.[1x] files are present.
sc_man_file_correlation: check-x-vs-1 check-programs-vs-x

File diff suppressed because it is too large Load Diff