1 <?xml version='
1.0' encoding='UTF-
8'
?>
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
8 -''-param man.charmap.use.subset "0" \
9 -''-param make.year.ranges "1" \
10 -''-param make.single.year.ranges "1" \
11 /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \
14 A manual page <package>.<section> will be generated. You may view the
15 manual page with: nroff -man <package>.<section> | less'. A typical entry
16 in a Makefile or Makefile.am is:
18 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
19 XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
21 manpage.1: manpage.xml
24 The xsltproc binary is found in the xsltproc package. The XSL files are in
25 docbook-xsl. A description of the parameters you can use can be found in the
26 docbook-xsl-doc-* packages. Please remember that if you create the nroff
27 version in one of the debian/rules file targets (such as build), you will need
28 to include xsltproc and docbook-xsl in your Build-Depends control field.
29 Alternatively use the xmlto command/package. That will also automatically
30 pull in xsltproc and docbook-xsl.
32 Notes for using docbook2x: docbook2x-man does not automatically create the
33 AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
34 <refsect1> ... </refsect1>.
36 To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
37 read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
38 found in the docbook-xsl-doc-html package.
40 Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
42 General documentation about man-pages and man-page-formatting:
43 man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
47 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
48 <!ENTITY dhfirstname
"FIRSTNAME">
49 <!ENTITY dhsurname
"SURNAME">
50 <!-- dhusername could also be set to "&dhfirstname; &dhsurname;". -->
51 <!ENTITY dhusername
"naiiawah">
52 <!ENTITY dhemail
"naiiawah@none">
53 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
54 allowed: see man(7), man(1) and
55 http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
56 <!ENTITY dhsection
"SECTION">
57 <!-- TITLE should be something like "User commands" or similar (see
58 http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
59 <!ENTITY dhtitle
"openpilot User Manual">
60 <!ENTITY dhucpackage
"OPENPILOT">
61 <!ENTITY dhpackage
"openpilot">
66 <title>&dhtitle;</title>
67 <productname>&dhpackage;</productname>
70 <firstname>&dhfirstname;</firstname>
71 <surname>&dhsurname;</surname>
72 <contrib>Wrote this manpage for the Debian system.
</contrib>
74 <email>&dhemail;</email>
80 <holder>&dhusername;</holder>
83 <para>This manual page was written for the Debian system
84 (and may be used by others).
</para>
85 <para>Permission is granted to copy, distribute and/or modify this
86 document under the terms of the GNU General Public License,
87 Version
2 or (at your option) any later version published by
88 the Free Software Foundation.
</para>
89 <para>On Debian systems, the complete text of the GNU General Public
90 License can be found in
91 <filename>/usr/share/common-licenses/GPL
</filename>.
</para>
95 <refentrytitle>&dhucpackage;</refentrytitle>
96 <manvolnum>&dhsection;</manvolnum>
99 <refname>&dhpackage;</refname>
100 <refpurpose>program to do something
</refpurpose>
104 <command>&dhpackage;</command>
105 <!-- These are several examples, how syntaxes could look -->
106 <arg choice=
"plain"><option>-e
<replaceable>this
</replaceable></option></arg>
107 <arg choice=
"opt"><option>--example=
<parameter>that
</parameter></option></arg>
110 <arg choice=
"plain"><option>-e
</option></arg>
111 <arg choice=
"plain"><option>--example
</option></arg>
113 <replaceable class=
"option">this
</replaceable>
117 <arg choice=
"plain"><option>-e
</option></arg>
118 <arg choice=
"plain"><option>--example
</option></arg>
121 <arg choice=
"plain"><replaceable>this
</replaceable></arg>
122 <arg choice=
"plain"><replaceable>that
</replaceable></arg>
127 <command>&dhpackage;</command>
128 <!-- Normally the help and version options make the programs stop
129 right after outputting the requested information. -->
133 <arg choice=
"plain"><option>-h
</option></arg>
134 <arg choice=
"plain"><option>--help
</option></arg>
139 <arg choice=
"plain"><option>-v
</option></arg>
140 <arg choice=
"plain"><option>--version
</option></arg>
146 <refsect1 id=
"description">
147 <title>DESCRIPTION
</title>
148 <para>This manual page documents briefly the
149 <command>&dhpackage;</command> and
<command>bar
</command>
151 <para>This manual page was written for the Debian distribution
152 because the original program does not have a manual page.
153 Instead, it has documentation in the GNU
<citerefentry>
154 <refentrytitle>info
</refentrytitle>
155 <manvolnum>1</manvolnum>
156 </citerefentry> format; see below.
</para>
157 <para><command>&dhpackage;</command> is a program that...
</para>
159 <refsect1 id=
"options">
160 <title>OPTIONS
</title>
161 <para>The program follows the usual GNU command line syntax,
162 with long options starting with two dashes (`-'). A summary of
163 options is included below. For a complete description, see the
165 <refentrytitle>info
</refentrytitle>
166 <manvolnum>1</manvolnum>
167 </citerefentry> files.
</para>
169 <!-- Use the variablelist.term.separator and the
170 variablelist.term.break.after parameters to
171 control the term elements. -->
173 <term><option>-e
<replaceable>this
</replaceable></option></term>
174 <term><option>--example=
<replaceable>that
</replaceable></option></term>
176 <para>Does this and that.
</para>
180 <term><option>-h
</option></term>
181 <term><option>--help
</option></term>
183 <para>Show summary of options.
</para>
187 <term><option>-v
</option></term>
188 <term><option>--version
</option></term>
190 <para>Show version of program.
</para>
195 <refsect1 id=
"files">
199 <term><filename>/etc/foo.conf
</filename></term>
201 <para>The system-wide configuration file to control the
202 behaviour of
<application>&dhpackage;</application>. See
204 <refentrytitle>foo.conf
</refentrytitle>
205 <manvolnum>5</manvolnum>
206 </citerefentry> for further details.
</para>
210 <term><filename>${HOME}/.foo.conf
</filename></term>
212 <para>The per-user configuration file to control the
213 behaviour of
<application>&dhpackage;</application>. See
215 <refentrytitle>foo.conf
</refentrytitle>
216 <manvolnum>5</manvolnum>
217 </citerefentry> for further details.
</para>
222 <refsect1 id=
"environment">
223 <title>ENVIONMENT
</title>
226 <term><envar>FOO_CONF
</envar></term>
228 <para>If used, the defined file is used as configuration
229 file (see also
<xref linkend=
"files"/>).
</para>
234 <refsect1 id=
"diagnostics">
235 <title>DIAGNOSTICS
</title>
236 <para>The following diagnostics may be issued
237 on
<filename class=
"devicefile">stderr
</filename>:
</para>
240 <term><errortext>Bad configuration file. Exiting.
</errortext></term>
242 <para>The configuration file seems to contain a broken configuration
243 line. Use the
<option>--verbose
</option> option, to get more info.
248 <para><command>&dhpackage;</command> provides some return codes, that can
249 be used in scripts:
</para>
251 <segtitle>Code
</segtitle>
252 <segtitle>Diagnostic
</segtitle>
254 <seg><errorcode>0</errorcode></seg>
255 <seg>Program exited successfully.
</seg>
258 <seg><errorcode>1</errorcode></seg>
259 <seg>The configuration file seems to be broken.
</seg>
264 <!-- Or use this section to tell about upstream BTS. -->
266 <para>The program is currently limited to only work
267 with the
<package>foobar
</package> library.
</para>
268 <para>The upstreams
<acronym>BTS
</acronym> can be found
269 at
<ulink url=
"http://bugzilla.foo.tld"/>.
</para>
271 <refsect1 id=
"see_also">
272 <title>SEE ALSO
</title>
273 <!-- In alpabetical order. -->
275 <refentrytitle>bar
</refentrytitle>
276 <manvolnum>1</manvolnum>
277 </citerefentry>,
<citerefentry>
278 <refentrytitle>baz
</refentrytitle>
279 <manvolnum>1</manvolnum>
280 </citerefentry>,
<citerefentry>
281 <refentrytitle>foo.conf
</refentrytitle>
282 <manvolnum>5</manvolnum>
283 </citerefentry></para>
284 <para>The programs are documented fully by
<citetitle>The Rise and
285 Fall of a Fooish Bar
</citetitle> available via the
<citerefentry>
286 <refentrytitle>info
</refentrytitle>
287 <manvolnum>1</manvolnum>
288 </citerefentry> system.
</para>