1DH_INSTALLMAN(1)                   Debhelper                  DH_INSTALLMAN(1)
2
3
4

NAME

6       dh_installman - install man pages into package build directories
7

SYNOPSIS

9       dh_installman [debhelper options] [manpage ...]
10

DESCRIPTION

12       dh_installman is a debhelper program that handles installing man pages
13       into the correct locations in package build directories.
14
15       In compat 10 and earlier, this program was primarily for when
16       upstream's build system does not properly install them as a part of its
17       install step (or it does not have an install step).  In compat 11 and
18       later, it supports the same features of dh_install(1) and has the
19       advantage that it respects the nodoc build profile (unlike
20       dh_install(1)).
21
22       Even if you prefer to use dh_install(1) for installing the manpages,
23       dh_installman can still be useful for converting the manpage encoding
24       to UTF-8 and for converting .so links (as described below).  However,
25       that part happens automatically without any explicit configuration.
26
27       You tell dh_installman what man pages go in your packages, and it
28       figures out where to install them based on the section field in their
29       .TH or .Dt line. If you have a properly formatted .TH or .Dt line, your
30       man page will be installed into the right directory, with the right
31       name (this includes proper handling of pages with a subsection, like
32       3perl, which are placed in man3, and given an extension of .3perl). If
33       your .TH or .Dt line is incorrect or missing, the program may guess
34       wrong based on the file extension.
35
36       It also supports translated man pages, by looking for extensions like
37       .ll.8 and .ll_LL.8, or by use of the --language switch.
38
39       If dh_installman seems to install a man page into the wrong section or
40       with the wrong extension, this is because the man page has the wrong
41       section listed in its .TH or .Dt line. Edit the man page and correct
42       the section, and dh_installman will follow suit. See man(7) for details
43       about the .TH section, and mdoc(7) for the .Dt section. If
44       dh_installman seems to install a man page into a directory like
45       /usr/share/man/pl/man1/, that is because your program has a name like
46       foo.pl, and dh_installman assumes that means it is translated into
47       Polish. Use --language=C to avoid this.
48
49       After the man page installation step, dh_installman will check to see
50       if any of the man pages in the temporary directories of any of the
51       packages it is acting on contain .so links. If so, it changes them to
52       symlinks.
53
54       Also, dh_installman will use man to guess the character encoding of
55       each manual page and convert it to UTF-8. If the guesswork fails for
56       some reason, you can override it using an encoding declaration. See
57       manconv(1) for details.
58
59       From debhelper compatibility level 11 on, dh_install will fall back to
60       looking in debian/tmp for files, if it does not find them in the
61       current directory (or wherever you've told it to look using
62       --sourcedir).
63

FILES

65       debian/package.manpages
66           Lists man pages to be installed.
67

OPTIONS

69       -A, --all
70           Install all files specified by command line parameters in ALL
71           packages acted on.
72
73       --language=ll
74           Use this to specify that the man pages being acted on are written
75           in the specified language.
76
77       --sourcedir=dir
78           Look in the specified directory for files to be installed.  This
79           option requires compat 11 or later (it is silently ignored in
80           compat 10 or earlier).
81
82           Note that this is not the same as the --sourcedirectory option used
83           by the dh_auto_* commands. You rarely need to use this option,
84           since dh_installman automatically looks for files in debian/tmp in
85           debhelper compatibility level 11 and above.
86
87       manpage ...
88           Install these man pages into the first package acted on. (Or in all
89           packages if -A is specified).
90

EXAMPLES

92       An example debian/manpages file could look like this:
93
94         doc/man/foo.1
95         # Translations
96         doc/man/foo.da.1
97         doc/man/foo.de.1
98         doc/man/foo.fr.1
99         # NB: The following line is considered a polish translation
100         # of "foo.1" (and not a manpage written in perl called "foo.pl")
101         doc/man/foo.pl.1
102         # ...
103

NOTES

105       An older version of this program, dh_installmanpages(1), is still used
106       by some packages, and so is still included in debhelper.  It is,
107       however, deprecated, due to its counterintuitive and inconsistent
108       interface. Use this program instead.
109

SEE ALSO

111       debhelper(7)
112
113       This program is a part of debhelper.
114

AUTHOR

116       Joey Hess <joeyh@debian.org>
117
118
119
12011.4                              2018-09-14                  DH_INSTALLMAN(1)
Impressum