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.
22 Separate the directory names with whitespace.
24 Any directory names specified as parameters will be created in the package
25 build directory of the first package dh_installdirs is told to act on. By
26 default, this is the first binary package in debian/control, but if you use
27 -p, -i, or -a flags, it will be the first package specified by those flags.
29 Be sure to only use directory names relative to the package build
30 directory. Ie, "/usr/bin" should not be used, use "usr/bin" instead.
38 Create any directories specified by command line parameters in ALL packages
39 acted on, not just the first.
43 Create these directories in the package build directory of the first
44 package acted on. (Or in all packages if -A is specified.)
52 foreach my $package (@{$dh{DOPACKAGES}}) {
53 my $tmp=tmpdir($package);
54 my $file=pkgfile($package,"dirs");
57 doit("install","-d",$tmp);
63 @dirs=filearray($file)
66 if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
71 # Stick the $tmp onto the front of all the dirs.
72 # This is necessary, for 2 reasons, one to make them
73 # be in the right directory, but more importantly, it
74 # protects against the danger of absolute dirs being
78 tr:/:/:s; # just beautification.
83 doit("install","-d",@dirs);
91 This program is a part of debhelper.
95 Joey Hess <joeyh@debian.org>