From 363f8db1398bffe9d95cfbda3c30991c13df7ff6 Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sun, 5 Nov 2023 15:37:19 -0600 Subject: [PATCH] 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 --- doc/Gbk-1pg-sfx.mn | 7 +------ sys/unix/Makefile.doc | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/Gbk-1pg-sfx.mn b/doc/Gbk-1pg-sfx.mn index d00b37f5f..9008ac440 100644 --- a/doc/Gbk-1pg-sfx.mn +++ b/doc/Gbk-1pg-sfx.mn @@ -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 diff --git a/sys/unix/Makefile.doc b/sys/unix/Makefile.doc index 89b67a12e..4b4750752 100644 --- a/sys/unix/Makefile.doc +++ b/sys/unix/Makefile.doc @@ -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 -