Annotation of mandoc/index.sgml, Revision 1.12
1.1 kristaps 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2: <html>
3: <head>
4: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5: <meta name="resource-type" content="document">
6: <link rel="stylesheet" href="style.css" type="text/css" media="all">
7: <title>mdocml.bsd.lv</title>
8: </head>
9: <body>
10: <table width="600">
11: <col width="100%">
12: <tbody>
13: <tr>
14: <td>
15: <div class="head">
16: <b>mdocml</b> – mdoc macro compiler
17: </div>
18: </td>
19: </tr>
20: <tr>
21: <td valign="top">
22: <h1>
23: DESCRIPTION
24: </h1>
25:
26: <p>
1.9 kristaps 27: <span class="nm">mdocml</span> is a suite of tools compiling “mdoc”, the roff macro
28: package for BSD manual pages. The mission of <span class="nm">mdocml</span> is to deprecate <a
1.1 kristaps 29: href="http://www.gnu.org/software/groff/" class="external">groff</a>, the GNU roff implementation, for
1.9 kristaps 30: displaying BSD mdoc pages.
31: </p>
32:
33: <p>
34: Why? groff amounts to roughly 5,2 MB of source code (OpenBSD 4.2), some of which is C++ and all of
35: which is GPL. It runs slowly, produces uncertain output, and varies in operation from system
36: to system. mdocml strives to fix this (respectively small, C, ISC-licensed, fast and regular).
1.1 kristaps 37: </p>
38:
39: <p>
40: The core of <span class="nm">mdocml</span> is the libmdoc library, a validating scanner-parser producing
41: intermediate-form output from mdoc input. libmdoc is a simple, fast library operating on memory buffers
42: of mdoc input. Its intermediate output, an abstract syntax tree, is fully documented in the <span
43: class="man">mdoc(3)</span> reference manual.
44: </p>
45:
46: <p>
47: There are three utilities implementing <span class="man">mdoc(3)</span>:
48: </p>
49:
50: <ul>
51: <li><span class="man">mdocterm(1)</span> – formats mdoc input for display on the terminal
1.9 kristaps 52: <li><span class="man">mdochtml(1)</span> – formats mdoc input as HTML/CSS (nascent)
1.1 kristaps 53: <li><span class="man">mdoclint(1)</span> – validates mdoc input
54: <li><span class="man">mdoctree(1)</span> – prints input abstract syntax tree
55: </ul>
56:
57: <p>
58: The <span class="man">mdocterm(1)</span> utility is intended to deprecate usage of <a
59: href="http://www.gnu.org/software/groff/" class="external">groff</a> for displaying BSD manuals to the
60: terminal, either directly or cached as a “catman” page.
61: </p>
62:
63: <p>
64: <span class="attn">Please submit patches!</span> Although a significant implementation exists, work
65: remains for the backend library and especially the front-end utilities. See the <a
66: href="#contact">contact</a> information below to submit patches and bug reports.
67: </p>
68: </td>
69: </tr>
70: <tr>
71: <td>
72: <h1>
73: INSTALLING SOURCES
74: </h1>
75:
1.2 kristaps 76: <p>
77: Sources correctly build and install on OpenBSD, NetBSD and Linux operating systems, tested variously on
78: i386, AMD64 and Alpha.
79: </p>
80:
1.7 kristaps 81: <p>
1.8 kristaps 82: The most current version is <span class="attn">@VERSION@</span>, dated
83: <span class="attn">@VDATE@</span>.
1.7 kristaps 84: </p>
85:
1.1 kristaps 86: <h2>
1.9 kristaps 87: Snapshot source
1.1 kristaps 88: </h2>
89:
90: <p>
1.9 kristaps 91: CVS sources are checkedout and snapshotted with version updates. These may be found in the <a
1.1 kristaps 92: href="/snapshots/">/snapshots/</a> directory.
93: </p>
94:
95: <p class="boxed">
96: % cd /tmp<br>
1.4 kristaps 97: % ftp -V -o- http://mdocml.bsd.lv/snapshots/mdocml.tar.gz | tar -zvxf -<br>
1.1 kristaps 98: % cd mdocml<br>
1.6 kristaps 99: % make all<br>
100: % make regress<br>
101: # make install
1.1 kristaps 102: </p>
103:
104: <h2>
1.10 kristaps 105: Snapshot port/pkgsrc
1.1 kristaps 106: </h2>
107:
108: <p>
1.12 ! kristaps 109: The source snapshot is automatically converted into OpenBSD, NetBSD and FreeBSD ports at <a
! 110: href="/ports-openbsd/">/ports-openbsd/</a>, <a href="/ports-netbsd/">/ports-netbsd/</a> and <a
! 111: href="/ports-freebsd/">/ports-freebsd/</a>, respectively. Please read the <a
! 112: href="http://www.openbsd.org/faq/faq15.html">OpenBSD Ports FAQ</a>, <a
! 113: href="http://www.netbsd.org/docs/software/packages.html">NetBSD pkgsrc guide</a> or <a
! 114: href="http://www.freebsd.org/ports/">FreeBSD Ports Guide</a> first.
1.1 kristaps 115: </p>
116:
1.10 kristaps 117: <h3>
118: OpenBSD port
119: </h3>
120:
1.1 kristaps 121: <p class="boxed">
1.6 kristaps 122: # pkg_delete mdocml<br>
1.11 kristaps 123: # cd /usr/ports/textproc/<br>
1.6 kristaps 124: # rm -rf mdocml<br>
125: # ftp -V -o- http://mdocml.bsd.lv/ports-openbsd/mdocml.tar.gz | tar -zvxf -<br>
126: # cd mdocml<br>
127: # make build<br>
1.10 kristaps 128: # make install
129: </p>
130:
131: <h3>
132: NetBSD pkgsrc
133: </h3>
134:
135: <p class="boxed">
136: # pkg_delete mdocml<br>
1.11 kristaps 137: # cd /usr/pkgsrc/textproc/<br>
1.10 kristaps 138: # rm -rf mdocml<br>
139: # ftp -V -o- http://mdocml.bsd.lv/ports-netbsd/mdocml.tar.gz | tar -zvxf -<br>
140: # cd mdocml<br>
141: # make build<br>
1.6 kristaps 142: # make install
1.1 kristaps 143: </p>
1.12 ! kristaps 144:
! 145: <h3>
! 146: FreeBSD port
! 147: </h3>
! 148:
! 149: <p class="boxed">
! 150: # pkg_delete mdocml<br>
! 151: # cd /usr/ports/textproc/<br>
! 152: # rm -rf mdocml<br>
! 153: # ftp -V -o- http://mdocml.bsd.lv/ports-freebsd/mdocml.tar.gz | tar -zvxf -<br>
! 154: # cd mdocml<br>
! 155: # make build<br>
! 156: # make install
! 157: </p>
1.1 kristaps 158: </td>
159: </tr>
160: <tr>
161: <td>
162: <h1>
163: CONTACT
164: </h1>
165:
166: <p>
167: Please contact Kristaps, kris<a class="external"
168: href="http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ=="
169: onclick="window.open('http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ==',
170: '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return
171: false;" title="Reveal this e-mail address">...</a>@kth.se, with questions, bug reports, patches, and so on.
172: </p>
173:
174: <p>
175: If you'd like to submit patches, please contact us beforehand in case larger changes are pending but not
176: checked in. If making a bug report, please make sure it's repeatable on the most current snapshot.
177: </p>
178: </td>
179: </tr>
180: <tr>
181: <td>
182: <div class="foot">
1.12 ! kristaps 183: Copyright © 2009 Kristaps Džonsons, $Date: 2009/03/21 09:50:07 $
1.1 kristaps 184: </div>
185: </td>
186: </tr>
187: </tbody>
188: </table>
189: </body>
190: </html>
CVSweb