summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--Makefile.am1
-rw-r--r--src/roff/groff/groff.1.man7
3 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index de8aa662f..714e5262f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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.
* tmac/an-ext.tmac (EX, EE): Do a better job of keeping the
diff --git a/Makefile.am b/Makefile.am
index 741a333ea..d3fa426b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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" \
diff --git a/src/roff/groff/groff.1.man b/src/roff/groff/groff.1.man
index eb8838a7f..78e75e245 100644
--- a/src/roff/groff/groff.1.man
+++ b/src/roff/groff/groff.1.man
@@ -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