15
B<dh_installman> [S<I<debhelper options>>] [S<I<manpage ...>>]
15
B<dh_installman> [S<I<debhelper options>>] [S<I<manpage> ...>]
19
dh_installman is a debhelper program that handles installing
19
B<dh_installman> is a debhelper program that handles installing
20
20
man pages into the correct locations in package build directories. You tell
21
21
it what man pages go in your packages, and it figures out where to
22
install them based on the section field in their .TH line. If you have a
23
properly formatted .TH line, your man page will be installed into the right
22
install them based on the section field in their B<.TH> line. If you have a
23
properly formatted B<.TH> line, your man page will be installed into the right
24
24
directory, with the right name (this includes proper handling of pages
25
with a subsection, like "3perl", which are placed in man3, and given an
26
extension of ".3perl"). If your .TH line is incorrect or missing, the program
25
with a subsection, like B<3perl>, which are placed in F<man3>, and given an
26
extension of F<.3perl>). If your B<.TH> line is incorrect or missing, the program
27
27
may guess wrong based on the file extension.
29
29
It also supports translated man pages, by looking for extensions
30
like .ll.8 and .ll_LL.8, or by use of the --language switch.
30
like F<.ll.8> and F<.ll_LL.8>, or by use of the B<--language> switch.
32
If dh_installman seems to install a man page into the wrong section or with
32
If B<dh_installman> seems to install a man page into the wrong section or with
33
33
the wrong extension, this is because the man page has the wrong section
34
listed in its .TH line. Edit the man page and correct the section, and
35
dh_installman will follow suit. See L<man(7)> for details about the .TH
36
section. If dh_installman seems to install a man page into a directory
37
like /usr/share/man/pl/man1/, that is because your program has a
38
name like "foo.pl", and dh_installman assumes that means it is translated
39
into Polish. Use --language=C to avoid this.
34
listed in its B<.TH> line. Edit the man page and correct the section, and
35
B<dh_installman> will follow suit. See L<man(7)> for details about the B<.TH>
36
section. If B<dh_installman> seems to install a man page into a directory
37
like F</usr/share/man/pl/man1/>, that is because your program has a
38
name like F<foo.pl>, and B<dh_installman> assumes that means it is translated
39
into Polish. Use B<--language=C> to avoid this.
41
After the man page installation step, dh_installman will check to see if
41
After the man page installation step, B<dh_installman> will check to see if
42
42
any of the man pages in the temporary directories of any of the packages it
43
is acting on contain ".so" links. If so, it changes them to symlinks.
43
is acting on contain F<.so> links. If so, it changes them to symlinks.
45
Also, dh_installman will use man to guess the character encoding of each
45
Also, B<dh_installman> will use man to guess the character encoding of each
46
46
manual page and convert it to UTF-8. If the guesswork fails for some
47
47
reason, you can override it using an encoding declaration. See
48
48
L<manconv(1)> for details.