summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
-rw-r--r--apps/man/mudraw.12
-rw-r--r--apps/man/mupdf.12
3 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a5fdbc49..80190a8c 100644
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,16 @@ $(MUPDF) : $(addprefix $(OUT)/, x11_main.o x11_image.o pdfapp.o)
$(LINK_CMD) $(X11_LIBS)
endif
+# --- Format man pages ---
+
+%.txt: %.1
+ nroff -man $< | col -b | expand > $@
+
+MAN_FILES := $(wildcard apps/man/*.1)
+TXT_FILES := $(MAN_FILES:%.1=%.txt)
+
+catman: $(TXT_FILES)
+
# --- Install ---
prefix ?= /usr/local
diff --git a/apps/man/mudraw.1 b/apps/man/mudraw.1
index e51f56ef..41bee152 100644
--- a/apps/man/mudraw.1
+++ b/apps/man/mudraw.1
@@ -1,4 +1,4 @@
-.TH PDFDRAW 1 "March 16, 2012"
+.TH MUDRAW 1 "March 28, 2012"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
mudraw \- render PDF/XPS/CBZ documents
diff --git a/apps/man/mupdf.1 b/apps/man/mupdf.1
index 7a21e7f4..fc8e9640 100644
--- a/apps/man/mupdf.1
+++ b/apps/man/mupdf.1
@@ -37,7 +37,7 @@ Scroll page left, down, up, or right.
.B \+, \-
Zoom in or out.
.TP
-.B \W, \H
+.B W, H
Zoom so page exactly fits width or height of window.
.TP
.B w