Debian Codegraph @

lib/debian/manpage.md.ex

raw
1 % #PACKAGE#(SECTION) | User Commands
2 %
3 % "#SHORTDATE#"
4
5 [comment]: # The lines above form a Pandoc metadata block. They must be
6 [comment]: # the first ones in the file.
7 [comment]: # See https://pandoc.org/MANUAL.html#metadata-blocks for details.
8
9 [comment]: # pandoc -s -f markdown -t man package.md -o package.1
10 [comment]: #
11 [comment]: # A manual page package.1 will be generated. You may view the
12 [comment]: # manual page with: nroff -man package.1 | less. A typical entry
13 [comment]: # in a Makefile or Makefile.am is:
14 [comment]: #
15 [comment]: # package.1: package.md
16 [comment]: # pandoc --standalone --from=markdown --to=man $< --output=$@
17 [comment]: #
18 [comment]: # The pandoc binary is found in the pandoc package. Please remember
19 [comment]: # that if you create the nroff version in one of the debian/rules
20 [comment]: # file targets, such as build, you will need to include pandoc in
21 [comment]: # your Build-Depends control field.
22
23 [comment]: # lowdown is a low dependency, lightweight alternative to
24 [comment]: # pandoc as a markdown to manpage translator. Use with:
25 [comment]: #
26 [comment]: # package.1: package.md
27 [comment]: # lowdown -s -Tman -o $@ $<
28 [comment]: #
29 [comment]: # And add lowdown to the Build-Depends control field.
30
31 [comment]: # Remove the lines starting with '[comment]:' in this file in order
32 [comment]: # to avoid warning messages.
33
34 # NAME
35
36 #PACKAGE# - program to do something
37
38 # SYNOPSIS
39
40 **#PACKAGE#** **-e** _this_ [**\-\-example=that**] [{**-e** | **\-\-example**} _this_]
41 [{**-e** | **\-\-example**} {_this_ | _that_}]
42
43 **#PACKAGE#** [{**-h** | *\-\-help**} | {**-v** | **\-\-version**}]
44
45 # DESCRIPTION
46
47 This manual page documents briefly the **#PACKAGE#** and **bar** commands.
48
49 This manual page was written for the Debian distribution because the
50 original program does not have a manual page. Instead, it has documentation
51 in the GNU info(1) format; see below.
52
53 **#PACKAGE#** is a program that...
54
55 # OPTIONS
56
57 The program follows the usual GNU command line syntax, with long options
58 starting with two dashes ('-'). A summary of options is included below. For
59 a complete description, see the **info**(1) files.
60
61 **-e** _this_, **\-\-example=**_that_
62 : Does this and that.
63
64 **-h**, **\-\-help**
65 : Show summary of options.
66
67 **-v**, **\-\-version**
68 : Show version of program.
69
70 # FILES
71
72 /etc/foo.conf
73 : The system-wide configuration file to control the behaviour of
74 #PACKAGE#. See **foo.conf**(5) for further details.
75
76 ${HOME}/.foo.conf
77 : The per-user configuration file to control the behaviour of
78 #PACKAGE#. See **foo.conf**(5) for further details.
79
80 # ENVIRONMENT
81
82 **FOO_CONF**
83 : If used, the defined file is used as configuration file (see also
84 the section called “FILES”).
85
86 # DIAGNOSTICS
87
88 The following diagnostics may be issued on stderr:
89
90 Bad configuration file. Exiting.
91 : The configuration file seems to contain a broken configuration
92 line. Use the **\-\-verbose** option, to get more info.
93
94 **#PACKAGE#** provides some return codes, that can be used in scripts:
95
96 Code Diagnostic
97 0 Program exited successfully.
98 1 The configuration file seems to be broken.
99
100 # BUGS
101
102 The program is currently limited to only work with the foobar library.
103
104 The upstream BTS can be found at http://bugzilla.foo.tld.
105
106 # SEE ALSO
107
108 **bar**(1), **baz**(1), **foo.conf**(5)
109
110 The programs are documented fully by The Rise and Fall of a Fooish Bar
111 available via the **info**(1) system.
112
113 # AUTHOR
114
115 #USERNAME# <#EMAIL#>
116 : Wrote this manpage for the Debian system.
117
118 # COPYRIGHT
119
120 Copyright © 2007 #USERNAME#
121
122 This manual page was written for the Debian system (and may be used by
123 others).
124
125 Permission is granted to copy, distribute and/or modify this document under
126 the terms of the GNU General Public License, Version 2 or (at your option)
127 any later version published by the Free Software Foundation.
128
129 On Debian systems, the complete text of the GNU General Public License
130 can be found in /usr/share/common-licenses/GPL.
131
132 [comment]: # Local Variables:
133 [comment]: # mode: markdown
134 [comment]: # End: