> My manager is real hot to have man pages on our internal library functions,
> and I have never written a man page. So is there a good basic HOWTO on Man
> Page writing out there. We are using a variety of UNIX and UNIX-like boxes
> here.
Just looking at a manpage (after unzipping) was already said.
There is another option of generating manpages: perldoc. It uses
an easy description format, much easier to use than nroff.
Examples should be the pm files in /usr/lib/perl (most modules
contain their own manpage in the same file). The program pod2man
(see man pod2man) can make manpages of .pod files.
Here a small example:
,---
| =head1 NAME
|
| ByteLoader - load byte compiled perl code
|
| =head1 SYNOPSIS
|
| use ByteLoader 0.04;
| <byte code>
|
| use ByteLoader 0.04;
| <byte code>
|
| =head1 DESCRIPTION
|
| This module is used to load byte compiled perl code. It uses the source
| filter mechanism to read the byte code and insert it into the compiled
| code at the appropriate point.
|
| =head1 AUTHOR
|
|
| =head1 SEE ALSO
|
| perl(1).
`---
There are some escape codes:
E<gt> and E<lt> stand for the > and < character. B<text> makes the inner
text bold, I<text> italic. <> sequences can be nested, example:
B<E<gt>>
--
Your password must be at least 18770 characters and cannot repeat any of
your previous 30689 passwords. Please type a different password. Type a
password that meets these requirements in both text boxes. [M$]
(Fix: http://support.microsoft.com/support/kb/articles/q276/3/04.ASP)