version 1.7, 2009/02/25 12:37:18 |
version 1.15, 2009/03/24 20:05:43 |
|
|
</h1> |
</h1> |
|
|
<p> |
<p> |
<span class="nm">mdocml</span> is a suite of tools that compile “mdoc”, the roff macro |
<span class="nm">mdocml</span> is a suite of tools compiling “-mdoc”, the roff macro |
package of the BSD manual pages. The mission of <span class="nm">mdocml</span> is to deprecate <a |
package of choice for BSD manual pages. The mission of <span class="nm">mdocml</span> is to deprecate |
href="http://www.gnu.org/software/groff/" class="external">groff</a>, the GNU roff implementation, for |
<a href="http://www.gnu.org/software/groff/" class="external">groff</a>, the GNU roff implementation, |
displaying BSD mdoc pages. groff amounts to over 60 000 lines of GPL C++ source, which is a |
for displaying -mdoc pages. |
considerable encumbrance to BSD operating systems. |
|
</p> |
</p> |
|
|
<p> |
<p> |
The core of <span class="nm">mdocml</span> is the libmdoc library, a validating scanner-parser producing |
Why? groff amounts to over 5 MB of source code, most of which is C++ and all of which is GPL. It runs |
intermediate-form output from mdoc input. libmdoc is a simple, fast library operating on memory buffers |
slowly, produces uncertain output, and varies in operation from system to system. mdocml strives to fix |
of mdoc input. Its intermediate output, an abstract syntax tree, is fully documented in the <span |
this (respectively small, C, ISC-licensed, fast and regular). |
class="man">mdoc(3)</span> reference manual. |
|
</p> |
</p> |
|
|
<p> |
<p> |
There are three utilities implementing <span class="man">mdoc(3)</span>: |
The core of <span class="nm">mdocml</span> is the libmdoc library, a validating scanner-parser producing |
|
intermediate-form output from -mdoc input. libmdoc is a simple, fast library operating on memory |
|
buffers, so it can be used for a variety of front-ends (terminal-based, CGI and so on). |
</p> |
</p> |
|
|
<ul> |
|
<li><span class="man">mdocterm(1)</span> – formats mdoc input for display on the terminal |
|
<li><span class="man">mdochtml(1)</span> – formats mdoc input as strict HTML (nascent) |
|
<li><span class="man">mdoclint(1)</span> – validates mdoc input |
|
<li><span class="man">mdoctree(1)</span> – prints input abstract syntax tree |
|
</ul> |
|
|
|
<p> |
<p> |
The <span class="man">mdocterm(1)</span> utility is intended to deprecate usage of <a |
The primary front-end is <span class="man">mandoc(1)</span>, which formats -mdoc manuals for display on |
href="http://www.gnu.org/software/groff/" class="external">groff</a> for displaying BSD manuals to the |
the terminal. The <span class="man">mandoc(1)</span> utility is intended to deprecate usage of <a |
terminal, either directly or cached as a “catman” page. |
href="http://www.gnu.org/software/groff/" class="external">groff</a> for displaying mdoc manuals on the |
|
terminal. |
</p> |
</p> |
|
|
<p> |
<p> |
<span class="attn">Please submit patches!</span> Although a significant implementation exists, work |
<span class="attn">Please submit patches, bug reports and suggestions!</span> Although a significant |
remains for the backend library and especially the front-end utilities. See the <a |
implementation exists, work remains for the backend library and especially the front-end utilities. See |
href="#contact">contact</a> information below to submit patches and bug reports. |
the <a href="#contact">contact</a> information below for submissions. |
</p> |
</p> |
</td> |
</td> |
</tr> |
</tr> |
|
|
</h1> |
</h1> |
|
|
<p> |
<p> |
Sources correctly build and install on OpenBSD, NetBSD and Linux operating systems, tested variously on |
Sources correctly build and install on FreeBSD, OpenBSD, NetBSD and Linux operating systems, tested |
i386, AMD64 and Alpha. |
variously on i386, AMD64, alpha and others. |
</p> |
</p> |
|
|
<p> |
<p> |
The most current version is <b>@VERSION@</b>, dated <b>@VDATE@</b>. |
The most current version is <span class="attn">@VERSION@</span>, dated |
|
<span class="attn">@VDATE@</span>. |
</p> |
</p> |
|
|
<h2> |
<h2> |
snapshotted source |
Snapshot source |
</h2> |
</h2> |
|
|
<p> |
<p> |
CVS sources are checkedout and snapshotted with big updates. These may be found in the <a |
CVS sources are checkedout and snapshotted with version updates. These may be found in the <a |
href="/snapshots/">/snapshots/</a> directory. |
href="/snapshots/">/snapshots/</a> directory. |
</p> |
</p> |
|
|
|
|
</p> |
</p> |
|
|
<h2> |
<h2> |
nightly port |
Snapshot port/pkgsrc |
</h2> |
</h2> |
|
|
<p> |
<p> |
The source snapshot is automatically converted into an OpenBSD port (ports for other BSD systems not |
The source snapshot is automatically converted into OpenBSD, NetBSD and FreeBSD ports at <a |
yet available). These may be found in the <a href="/ports-openbsd/">/ports-openbsd/</a> directory. |
href="/ports-openbsd/">/ports-openbsd/</a>, <a href="/ports-netbsd/">/ports-netbsd/</a> and <a |
You <span class="emph">must</span> have the ports tree installed. |
href="/ports-freebsd/">/ports-freebsd/</a>, respectively. Please read the <a class="external" |
|
href="http://www.openbsd.org/faq/faq15.html">OpenBSD Ports FAQ</a>, the <a class="external" |
|
href="http://www.netbsd.org/docs/software/packages.html">NetBSD pkgsrc guide</a> or the <a |
|
class="external" |
|
href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html">FreeBSD ports |
|
guide</a>, first. |
</p> |
</p> |
|
|
|
<h3> |
|
OpenBSD port |
|
</h3> |
|
|
<p class="boxed"> |
<p class="boxed"> |
# pkg_delete mdocml<br> |
# pkg_delete mdocml<br> |
# cd /usr/ports/devel/<br> |
# cd /usr/ports/textproc/<br> |
# rm -rf mdocml<br> |
# rm -rf mdocml<br> |
# ftp -V -o- http://mdocml.bsd.lv/ports-openbsd/mdocml.tar.gz | tar -zvxf -<br> |
# ftp -V -o- http://mdocml.bsd.lv/ports-openbsd/mdocml.tar.gz | tar -zvxf -<br> |
# cd mdocml<br> |
# cd mdocml<br> |
# make build<br> |
# make build<br> |
# make regress<br> |
|
# make install |
# make install |
</p> |
</p> |
|
|
|
<h3> |
|
NetBSD pkgsrc |
|
</h3> |
|
|
|
<p class="boxed"> |
|
# pkg_delete mdocml<br> |
|
# cd /usr/pkgsrc/textproc/<br> |
|
# rm -rf mdocml<br> |
|
# ftp -V -o- http://mdocml.bsd.lv/ports-netbsd/mdocml.tar.gz | tar -zvxf -<br> |
|
# cd mdocml<br> |
|
# make build<br> |
|
# make install |
|
</p> |
|
|
|
<h3> |
|
FreeBSD port |
|
</h3> |
|
|
|
<p class="boxed"> |
|
# pkg_delete -x mdocml<br> |
|
# cd /tmp<br> |
|
# ftp -V -o- http://mdocml.bsd.lv/ports-freebsd/mdocml.tar.gz | tar -zvxf -<br> |
|
# cd mdocml<br> |
|
# make<br> |
|
# make install |
|
</p> |
</td> |
</td> |
</tr> |
</tr> |
<tr> |
<tr> |
|
|
href="http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ==" |
href="http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ==" |
onclick="window.open('http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ==', |
onclick="window.open('http://mailhide.recaptcha.net/d?k=01jt88xIsFONwVjHZmGpc4AQ==&c=sb5E6ulipc-eTnpTVqI-BQ==', |
'', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return |
'', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return |
false;" title="Reveal this e-mail address">...</a>@kth.se, with questions, bug reports, patches, and so on. |
false;" title="Reveal this e-mail address">...</a>@kth.se, with questions, bug reports, patches, and so |
|
on. |
</p> |
</p> |
|
|
<p> |
<p> |
|
|
<tr> |
<tr> |
<td> |
<td> |
<div class="foot"> |
<div class="foot"> |
Copyright © 2009 Kristaps Džonsons, $Date$ |
Copyright © 2008, 2009 Kristaps Džonsons, $Date$ |
</div> |
</div> |
</td> |
</td> |
</tr> |
</tr> |