diff options
author | 2011-09-17 15:00:51 +0000 | |
---|---|---|
committer | 2011-09-17 15:00:51 +0000 | |
commit | d896fc86c4e9a18cefb558d7bfd1c987306de938 (patch) | |
tree | 9821eaa5690811ede58dcb6c8ecb6d2319da1540 /mandoc.1 | |
parent | 16e745d5f0fcf9edaa4f0733c6dd0a128075b31a (diff) | |
download | mandoc-d896fc86c4e9a18cefb558d7bfd1c987306de938.tar.gz mandoc-d896fc86c4e9a18cefb558d7bfd1c987306de938.tar.zst mandoc-d896fc86c4e9a18cefb558d7bfd1c987306de938.zip |
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.1 | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.90 2011/08/18 08:58:43 kristaps Exp $ +.\" $Id: mandoc.1,v 1.91 2011/09/17 15:00:51 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 18 2011 $ +.Dd $Mdocdate: September 17 2011 $ .Dt MANDOC 1 .Os .Sh NAME @@ -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 |