<?xml version="1.0" encoding="iso-8859-1"?>
<!-- name="generator" content="pyblosxom/1.3.2 2/13/2006" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>Rustybear Blog 19 Dec 2006</title>
<link>http://www.rustybear.com/cgi-bin/pyblosxom.cgi</link>
<description>Rustybear Blog</description>
<language>en</language>
<item>
  <title>Writing man pages</title>
  <link>http://www.rustybear.com/cgi-bin/pyblosxom.cgi/dev/manpages.html</link>
  <description><![CDATA[
<pre>
On a Debian system, install the following using apt-get:

    asciidoc
    xmlto

Write your man page using asciidoc.  The asciidoc homepage can be found at:

    http://www.methods.co.nz/asciidoc/

where you can also find a user manual which will show examples
on usage.

When writing your man page, start by usng the ascii.1.txt page in 
<a href="#">/usr/share/doc/asciidoc</a> as an example.  Copy this file to your
working area and edit it appropriately.  Once your page is written, 
run the following command:

    asciidoc -v --doctype=manpage --backend=docbook  photon.1.txt

This produces a photon.1.xml file.  Next run this command:

    xmlto man photon.1.xml

This produces a photon.1 man page.

Check photon.1 for small corrections.  It seems to add in extra .sp tags.

Preview your new man page by running this command:

    man ./photon.1

</pre>

]]></description>
</item>

</channel>
</rss>
