[build]: Expand @PAGE@ when generating man pages.

* Makefile.am (.man): Substitute the './configure'd paper format for
  @PAGE@.

* src/roff/groff/groff.1.man: Use it.
This commit is contained in:
G. Branden Robinson 2022-02-01 02:20:27 +11:00
parent 52f661f080
commit 90bf377ee8
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2022-01-31 G. Branden Robinson <g.branden.robinson@gmail.com>
[build]: Expand '@PAGE@' when generating man pages.
* Makefile.am (.man): Substitute the './configure'd paper format
for @PAGE@.
* src/roff/groff/groff.1.man: Use it.
2022-01-31 G. Branden Robinson <g.branden.robinson@gmail.com>
[man]: Trivially refactor an-ext.tmac.

View File

@ -910,6 +910,7 @@ SUFFIXES += .man
-e "s|[@]MAN7EXT[@]|$(man7ext)|g" \
-e "s|[@]MDATE[@]|`$(PERL) $(top_srcdir)/mdate.pl $<`|g" \
-e "s|[@]OLDFONTDIR[@]|`echo $(oldfontdir) | sed -f $(makevarescape)`|g" \
-e "s|[@]PAGE[@]|$(PAGE)|g" \
-e "s|[@]PDFDOCDIR[@]|`echo $(pdfdocdir) | sed -f $(makevarescape)`|g" \
-e "s|[@]SYSTEMMACRODIR[@]|`echo $(systemtmacdir) | sed -f $(makevarescape)`|g" \
-e "s|[@]TMAC_AN_PREFIX[@]|$(tmac_an_prefix)|g" \

View File

@ -774,9 +774,10 @@ like \[lq]letter\[rq] or
see
.MR groff_tmac @MAN5EXT@ .
.
The default used by the formatter depends on its build configuration,
but is usually one of the foregoing,
as geographically appropriate.
The default used by the formatter depends on its build configuration;
in this installation,
it is
.RB \[lq] @PAGE@ \[rq].
.
.
.P