aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/demandoc.1
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-09-01 10:46:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-09-01 10:46:28 +0000
commit85524d91bce7e4c0554fb0b77b818fc4d8b5d3f6 (patch)
tree7a8316dc224165d6ef07191aebd51e6d81008cdc /demandoc.1
parentf96bb9faa334d942264469a046fdba0d980db93d (diff)
downloadmandoc-85524d91bce7e4c0554fb0b77b818fc4d8b5d3f6.tar.gz
mandoc-85524d91bce7e4c0554fb0b77b818fc4d8b5d3f6.tar.zst
mandoc-85524d91bce7e4c0554fb0b77b818fc4d8b5d3f6.zip
Add demandoc utility, a replacement for deroff.
Diffstat (limited to 'demandoc.1')
-rw-r--r--demandoc.174
1 files changed, 74 insertions, 0 deletions
diff --git a/demandoc.1 b/demandoc.1
new file mode 100644
index 00000000..1136542f
--- /dev/null
+++ b/demandoc.1
@@ -0,0 +1,74 @@
+.\" $Id: demandoc.1,v 1.1 2011/09/01 10:46:28 kristaps Exp $
+.\"
+.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd $Mdocdate: September 1 2011 $
+.Dt DEMANDOC 1
+.Os
+.Sh NAME
+.Nm demandoc
+.Nd emit only text of UNIX manuals
+.Sh SYNOPSIS
+.Nm demandoc
+.Op Ar
+.Sh DESCRIPTION
+The
+.Nm
+utility emits only the text portions of
+.Xr mdoc 7
+and
+.Xr man 7
+.Ux
+manual files.
+Its arguments are as follows:
+.Bl -tag -width Ds
+.It Ar
+The input files.
+.El
+.Pp
+If
+.Ar file
+is not provided,
+.Nm
+accepts standard input.
+.Pp
+.Nm
+output preserves the line numbering and column position of its input.
+.Sh EXIT STATUS
+The
+.Nm
+utility exits with one of the following values:
+.Pp
+.Bl -tag -width Ds -compact
+.It 0
+No errors occurred.
+.It 6
+An operating system error occurred, for example memory exhaustion or an
+error accessing input files.
+Such errors cause
+.Nm
+to exit at once, possibly in the middle of parsing or formatting a file.
+The output databases are corrupt and should be removed .
+.El
+.Sh SEE ALSO
+.Xr mandoc 1 ,
+.Xr man 7
+.Xr mdoc 7
+.Sh AUTHORS
+The
+.Nm
+utility was written by
+.An Kristaps Dzonsons ,
+.Mt kristaps@bsd.lv .