=================================================================== RCS file: /cvs/texi2mdoc/texi2mdoc.1,v retrieving revision 1.6 retrieving revision 1.16 diff -u -p -r1.6 -r1.16 --- texi2mdoc/texi2mdoc.1 2015/02/21 21:49:18 1.6 +++ texi2mdoc/texi2mdoc.1 2018/11/13 08:45:29 1.16 @@ -1,4 +1,4 @@ -.\" $Id: texi2mdoc.1,v 1.6 2015/02/21 21:49:18 kristaps Exp $ +.\" $Id: texi2mdoc.1,v 1.16 2018/11/13 08:45:29 schwarze Exp $ .\" .\" Copyright (c) 2015 Kristaps Dzonsons .\" @@ -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: February 21 2015 $ +.Dd $Mdocdate: November 13 2018 $ .Dt TEXI2MDOC 1 .Os .Sh NAME @@ -22,8 +22,10 @@ .Nd convert texinfo documents to mdoc .Sh SYNOPSIS .Nm texi2mdoc +.Op Fl C Ar dir +.Op Fl d Ar date .Op Fl I Ar dirs -.Ar file +.Op Ar file .Sh DESCRIPTION The .Nm @@ -34,12 +36,40 @@ documents to mixed with .Xr tbl 7 .Pq if applicable . +By default, +.Nm +reads from standard input. Its arguments are as follows: .Bl -tag -width Ds +.It Fl C Ar prefix +Instead of producing a single document, break apart the input into +node-level documents placed within +.Ar dir , +which must exist. +These are created as +.Pa prefix-NNN.7 . +.It Fl d Ar date +Set the output document date in the +.Ic \&Dd +macro to +.Ar date , +to be specified in the format +.Dq Ar Month Day , Year . +If unspecified, +.Nm +uses the file modification date +or the current date when reading from standard input. .It Fl I Ar dirs Colon-separated directories to search for .Li @include files. +.It Ar file +A Texinfo input file. +If specified, the directory of +.Ar file +is prepended to the list of +.Fl I +directories. .El .Pp .Nm @@ -84,13 +114,20 @@ The utility was written by .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv . .Sh CAVEATS -Amongst others, the -.Li @macro -and macro-related commands, -.Li @verb , -and -.Li @footnote -are not supported. +The output consists of superfluous +.Sq \&Pp +that cause +.D1 % mandoc -Tlint +to complain. +.Pp +Many commands that might contain useful information (such as +.Li @footnote ) +are thrown away. +.Pp +The comma in Texinfo macro arguments may at times be escaped with a backslash. +This is +.Em not +supported. .\" .Sh BUGS .Sh SECURITY CONSIDERATIONS As a security precaution, @@ -102,4 +139,3 @@ or of absolute paths or paths with .Li \&.. as directory components. -.\" Not used in OpenBSD.