]> granicus.if.org Git - nethack/commitdiff
How to create single-page Guidebook.txt
authorPasi Kallinen <paxed@alt.org>
Tue, 10 Apr 2018 15:19:45 +0000 (18:19 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 10 Apr 2018 15:19:45 +0000 (18:19 +0300)
sys/unix/Makefile.doc

index e2a8131fa0a810e87b27577d563190ed3f478517..88ec632b1f411c9cab5c8669d0b23f9a65ef5096 100644 (file)
@@ -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 -