diff options
Diffstat (limited to 'dh_installdirs')
-rwxr-xr-x | dh_installdirs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/dh_installdirs b/dh_installdirs deleted file mode 100755 index 7d5e49c1..00000000 --- a/dh_installdirs +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/perl -w -# -# Reads debian/dirs, creates the directories listed there - -BEGIN { push @INC, "debian", "/usr/share/debhelper" } -use Dh_Lib; -init(); - -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - $file=pkgfile($PACKAGE,"dirs"); - - if (! -e $TMP) { - doit("install","-d",$TMP); - } - - undef @dirs; - - if ($file) { - @dirs=filearray($file) - } - - if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { - push @dirs, @ARGV; - } - - if (@dirs) { - # Stick the $TMP onto the front of all the dirs. - # This is necessary, for 2 reasons, one to make them - # be in the right directory, but more importantly, it - # protects against the danger of absolute dirs being - # specified. - @dirs=map { - $_="$TMP/$_"; - tr:/:/:s; # just beautification. - $_ - } @dirs; - - # Create dirs. - doit("install","-d",@dirs); - } -} |