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:
@@ -1,8 +1,3 @@
|
||||
.\" suffux to Guidebook.mn for 'roff version of Guidebook written as one page
|
||||
.br
|
||||
.\" add a marker that precedes hundreds of blank lines which pad out the page
|
||||
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)
|
||||
.pl \n(nlu
|
||||
|
||||
@@ -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) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD)
|
||||
ONEPAGECMD = $(ONEPAGE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD) \
|
||||
| sed -e '/EOF--EOF/,12345D'
|
||||
ONEPAGECMD = $(ONEPAGE_PREFORMAT) | nroff -c -Tascii $(NROFF_FLAGS) | $(COLCMD)
|
||||
|
||||
# Only generate output for the current configuration:
|
||||
NHGREP = $(MAKEDEFS) --grep --input - --output -
|
||||
|
||||
Reference in New Issue
Block a user