5 dh_installinfo - install info files
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installinfo> [S<I<debhelper options>>] [B<-A>] [S<I<file ...>>]
18 dh_installinfo is a debhelper program that is responsible for installing
19 info files into usr/share/info in the package build directory.
21 Any filenames specified as parameters will be installed into the first
22 package dh_installinfo is told to act on. By default, this is the first
23 binary package in debian/control, but if you use -p, -i, or -a flags, it
24 will be the first package specified by those flags.
26 Files named debian/package.info can list other files to be installed.
34 Install all files specified by command line parameters in ALL packages
39 Install these info files into the first package acted on. (Or in
40 all packages if -A is specified).
48 foreach my $package (@{$dh{DOPACKAGES}}) {
49 my $tmp=tmpdir($package);
50 my $file=pkgfile($package,"info");
55 @info=filearray($file, ".");
58 if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
63 if ( ! -d "$tmp/usr/share/info") {
64 doit("install","-d","$tmp/usr/share/info");
66 doit("cp",@info,"$tmp/usr/share/info");
67 doit("chmod","-R", "go=rX","$tmp/usr/share/info/");
68 doit("chmod","-R", "u+rw","$tmp/usr/share/info/");
69 # For transition, could be removed later.
70 addsubstvar($package, "misc:Depends", "dpkg (>= 1.15.4) | install-info");
78 This program is a part of debhelper.
82 Joey Hess <joeyh@debian.org>