From 7f94f1760a87781615730ae5daf9b6b58a7feaf9 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 9 Feb 2001 23:13:53 +0000 Subject: r432: more podization, will it ever end? --- dh_installman | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 68 insertions(+), 3 deletions(-) (limited to 'dh_installman') diff --git a/dh_installman b/dh_installman index 03e5e9f..15c20e5 100755 --- a/dh_installman +++ b/dh_installman @@ -1,11 +1,64 @@ #!/usr/bin/perl -w -# -# Reads debian/manpages, installs all man pages there into appropriate -# man page directory tree. + +=head1 NAME + +dh_installman - install man pages into package build directories + +=cut use strict; use File::Find; use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + + dh_installman [debhelper options] [manpage ...] + +=head1 DESCRIPTION + +dh_installman is a debhelper program that is responsible for installing +man pages into the correct locations in package build directories. You tell +it what man pages go in your package(s), and it figures out where to +install them based on the section field in their .TH line and their filename +extention. + +Any man page filenames specified as parameters will be installed into the +first package dh_installman is told to act on. By default, this is the +first binary package in debian/control, but if you use -p, -i, or -a flags, +it will be the first package specified by those flags. + +Files named debian/package.manpages can list other man pages to be +installed. + +After the man page installation step, dh_installman will check to see if +any of the man pages in the temporary directories of any of the packages it +is acting on contain ".so" links. If so, it changes them to symlinks. + +=head1 OPTIONS + +=over 4 + +=item B<-A>, B<--all> + +Install all files specified by command line parameters in ALL packages +acted on. + +=item I + +Install these man pages into the first package acted on. (Or in all +packages if -A is specified). + +=back + +=head1 NOTES + +An older version of this program, L, is still used +by some packages, and so is still included in debhelper. +It is, however, deprecated, due to its counterintuiitive and inconsistent +interface. Use this program instead. + +=cut + init(); foreach my $package (@{$dh{DOPACKAGES}}) { @@ -127,3 +180,15 @@ sub find_so_man { push @sodests,$solink; } } + +=head1 SEE ALSO + +L + +This program is a part of debhelper. + +=head1 AUTHOR + +Joey Hess + +=cut -- cgit v1.2.1