summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-09-17 15:00:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-09-17 15:00:51 +0000
commitecc3c51a504af643161c53660cd2cfa8c3dc334d (patch)
tree0f97a5f3edce1fdc0910b60e9c0eb3fe47ad2632 /mandoc.1
parent42092681fc893b2d2207082f50a1d0997489566e (diff)
downloadmandoc-ecc3c51a504af643161c53660cd2cfa8c3dc334d.tar.gz
Initial, incomplete support for -Tman
to convert mdoc(7) documents to the man(7) language. This is work in progress and will be developed in tree. It does already handle the cat(1) manual, but will hardly handle all your fancy manuals yet. go ahead kristaps@ jmc@ millert@ deraadt@
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.116
1 files changed, 16 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index 184247e8..e9b3639b 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -179,6 +179,12 @@ See
Parse only: produce no output.
Implies
.Fl W Ns Cm warning .
+.It Fl T Ns Cm man
+Produce output in
+.Xr man 7
+format; only useful when applied to
+.Fl m Ns Cm doc
+input.
.It Fl T Ns Cm pdf
Produce PDF output.
See
@@ -417,6 +423,16 @@ To check over a large set of manuals:
To produce a series of PostScript manuals for A4 paper:
.Pp
.Dl $ mandoc \-Tps \-Opaper=a4 mdoc.7 man.7 \*(Gt manuals.ps
+.Pp
+Convert a modern
+.Xr mdoc 7
+manual to the older
+.Xr man 7
+format, for use on systems lacking an
+.Xr mdoc 7
+parser:
+.Pp
+.Dl $ mandoc \-Tman foo.mdoc \*(Gt foo.man
.Sh DIAGNOSTICS
Standard error messages reporting parsing errors are prefixed by
.Pp