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 B<dh_installinfo> is a debhelper program that is responsible for installing
19 info files into F<usr/share/info> in the package build directory.
25 =item debian/I<package>.info
27 List info files to be installed.
37 Install all files specified by command line parameters in ALL packages
42 Install these info files into the first package acted on. (Or in
43 all packages if B<-A> is specified).
51 foreach my $package (@{$dh{DOPACKAGES}}) {
52 my $tmp=tmpdir($package);
53 my $file=pkgfile($package,"info");
58 @info=filearray($file, ".");
61 if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
66 if ( ! -d "$tmp/usr/share/info") {
67 doit("install","-d","$tmp/usr/share/info");
69 doit("cp",@info,"$tmp/usr/share/info");
70 doit("chmod","-R", "go=rX","$tmp/usr/share/info/");
71 doit("chmod","-R", "u+rw","$tmp/usr/share/info/");
72 # For transition, could be removed later.
73 addsubstvar($package, "misc:Depends", "dpkg (>= 1.15.4) | install-info");
81 This program is a part of debhelper.
85 Joey Hess <joeyh@debian.org>