Use *roffier method of producing Guidebook.dat

doc/Gbk-1pg-sfx.mn is already using one half of a sound technique: set
the page length to a very large value, guaranteed to overshoot the
vertical space required by the document's text.  The other half is to,
at the end of the document, set the page length to the current vertical
position, so that it ends immediately.

https://www.gnu.org/software/groff/manual/groff.html.node/Manipulating-Spacing.html
This commit is contained in:
G. Branden Robinson
2023-11-05 15:37:19 -06:00
parent b35350d7d3
commit 363f8db139
2 changed files with 2 additions and 8 deletions

View File

@@ -1,8 +1,3 @@
.\" suffux to Guidebook.mn for 'roff version of Guidebook written as one page .\" suffux to Guidebook.mn for 'roff version of Guidebook written as one page
.br .br
.\" add a marker that precedes hundreds of blank lines which pad out the page .pl \n(nlu
EOF--EOF
.
.\" post process with "sed -e '/EOF--EOF/,12345D'" to remove trailing junk
.\" (also removes Unix trademark footnote; that ought to be kept but the
.\" generic "all trademarks are held by respective owners" is still present)

View File

@@ -34,8 +34,7 @@ PSCMD = groff
# GUIDECMD= $(GUIDE_PREFORMAT) | perl -pe 's/^(.mt)$$/.pl 4720v\n.in 0\n.po 8\n.ll 64m\n$$1/' | nroff -c -Tascii | $(COLCMD) # GUIDECMD= $(GUIDE_PREFORMAT) | perl -pe 's/^(.mt)$$/.pl 4720v\n.in 0\n.po 8\n.ll 64m\n$$1/' | nroff -c -Tascii | $(COLCMD)
# #
GUIDECMD = $(GUIDE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD) GUIDECMD = $(GUIDE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD)
ONEPAGECMD = $(ONEPAGE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD) \ ONEPAGECMD = $(ONEPAGE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD)
| sed -e '/EOF--EOF/,12345D'
# Only generate output for the current configuration: # Only generate output for the current configuration:
NHGREP = $(MAKEDEFS) --grep --input - --output - NHGREP = $(MAKEDEFS) --grep --input - --output -