manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Makefile.am is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
-->
FIRSTNAME">
SURNAME">
DATE">
SECTION">
EMAIL">
UCPACKAGE">
]>
&manemail;
&manfirstname;
&mansurname;
2002&manusername;
&mandate;
&manucpackage;
&mansection;
&manpackage;program to do something&manpackage;thisthat-flags-o optionargumentmoreDESCRIPTIONLong drawn-out discussion of &manpackage;.
It's a good idea to break this up into subsections, like these:A Sample SubsectionYet Another Sample SubsectionReferences to the
fooSECTION (or other) manual page should use the
<citerefentry> element as here.
Each paragraph within a section is contained within a
<para> tag.OPTIONSSome people make this separate from the description.|The user MUST specify either or
to run the program. The { and } braces
mean one of the enclosed is required. The bar (|) separates
exclusive options (i.e. you cannot have both at once.)Pass the user-supplied option to
foo to change its behaviour. The fact that
option is underlined or in italics
means that the user replaces it with a valid value for this
option. The [ and ] brackets mean it isn't required.The last is required, because it
is not in brackets.means that the user can optionally specify additional
arguments at the end. The ellipses (...) indicate one or more of
this parameter is allowed.RETURN VALUEWhat the program or function returns if successful.ERRORSReturn codes, either exit status or errno settings.EXAMPLESGive some example uses of the program.ENVIRONMENTEnvironment variables this program might care about.FILESAll files used by the program. Typical usage is like this:/usr/mandefault man tree/usr/man/man*/*.*unformatted (nroff source) man pagesNOTESMiscellaneous commentary.CAVEATSThings to take special care with, sometimes called WARNINGS.DIAGNOSTICSAll the possible error messages the program can print out, what
they mean, and how to correct them if applicable.BUGSThings that are broken or just don't work quite right.RESTRICTIONSBugs you don't plan to fix. :-)AUTHORWho wrote it (or AUTHORS if multiple).HISTORYPrograms derived from other sources sometimes have this.SEE ALSOOther man pages to check out, like man(1), man(7), mandb(8),
catman(8).