5 dh_installdirs - create subdirectories in package build directories
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installdirs> [S<I<debhelper options>>] [B<-A>] [S<I<dir ...>>]
18 dh_installdirs is a debhelper program that is responsible for creating
19 subdirectories in package build directories.
21 A file named debian/package.dirs can list directories to be created.
23 Any directory names specified as parameters will be created in the package
24 build directory of the first package dh_installdirs is told to act on. By
25 default, this is the first binary package in debian/control, but if you use
26 -p, -i, or -a flags, it will be the first package specified by those flags.
34 Create any directories specified by command line parameters in ALL packages
35 acted on, not just the first.
39 Create these directories in the package build directory of the first
40 package acted on. (Or in all packages if -A is specified.)
48 foreach my $package (@{$dh{DOPACKAGES}}) {
49 my $tmp=tmpdir($package);
50 my $file=pkgfile($package,"dirs");
53 doit("install","-d",$tmp);
59 @dirs=filearray($file)
62 if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
67 # Stick the $tmp onto the front of all the dirs.
68 # This is necessary, for 2 reasons, one to make them
69 # be in the right directory, but more importantly, it
70 # protects against the danger of absolute dirs being
74 tr:/:/:s; # just beautification.
79 doit("install","-d",@dirs);
87 This program is a part of debhelper.
91 Joey Hess <joeyh@debian.org>