From: Pasi Kallinen Date: Tue, 10 Apr 2018 15:19:45 +0000 (+0300) Subject: How to create single-page Guidebook.txt X-Git-Tag: NetHack-3.6.1_RC01~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22cc37ed61712678d49e8dd0684b48ed9ad75aae;p=nethack How to create single-page Guidebook.txt --- diff --git a/sys/unix/Makefile.doc b/sys/unix/Makefile.doc index e2a8131fa..88ec632b1 100644 --- a/sys/unix/Makefile.doc +++ b/sys/unix/Makefile.doc @@ -27,9 +27,11 @@ PSCMD = groff # Use the "cat" GUIDECMD if nroff and/or tbl and/or col are not installed # Not appropriate for creating Guidebook.txt. # GUIDECMD = cat Guidebook.txt -# The following works better with groff-1.18, eg on Linux -# GUIDECMD = $(GUIDE_PREFORMAT) | nroff -c -Tascii | $(COLCMD) -GUIDECMD = $(GUIDE_PREFORMAT) | nroff | $(COLCMD) +# +# Single page. Might need adjustment to .pl value +# 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 | $(COLCMD) # Only generate output for the current configuration: NHGREP = $(MAKEDEFS) --grep --input - --output -