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.
28 Be sure to only use directory names relative to the package build
29 directory. Ie, "/usr/bin" should not be used, use "usr/bin" instead.
37 Create any directories specified by command line parameters in ALL packages
38 acted on, not just the first.
42 Create these directories in the package build directory of the first
43 package acted on. (Or in all packages if -A is specified.)
51 foreach my $package (@{$dh{DOPACKAGES}}) {
52 my $tmp=tmpdir($package);
53 my $file=pkgfile($package,"dirs");
56 doit("install","-d",$tmp);
62 @dirs=filearray($file)
65 if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
70 # Stick the $tmp onto the front of all the dirs.
71 # This is necessary, for 2 reasons, one to make them
72 # be in the right directory, but more importantly, it
73 # protects against the danger of absolute dirs being
77 tr:/:/:s; # just beautification.
82 doit("install","-d",@dirs);
90 This program is a part of debhelper.
94 Joey Hess <joeyh@debian.org>