summaryrefslogtreecommitdiff
path: root/dh_installwm
diff options
context:
space:
mode:
authorjoey <joey>2001-02-09 00:57:53 +0000
committerjoey <joey>2001-02-09 00:57:53 +0000
commit053f6f8b4e7431d32511aef209188a084e8c7e79 (patch)
tree209a51c8c8fdbcce25c834198f1b3ef705dcb5b0 /dh_installwm
parentae0346306694bb2c52193f6352755c223e6e8935 (diff)
r420: big monsta changes
Diffstat (limited to 'dh_installwm')
-rwxr-xr-xdh_installwm14
1 files changed, 8 insertions, 6 deletions
diff --git a/dh_installwm b/dh_installwm
index 9a970fe..8bbee69 100755
--- a/dh_installwm
+++ b/dh_installwm
@@ -2,6 +2,7 @@
#
# Add to postinst and prerm to register a window manager.
+use strict;
use Debian::Debhelper::Dh_Lib;
init();
@@ -17,22 +18,23 @@ if (@ARGV) {
}
}
-foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
-# $TMP=tmpdir($PACKAGE);
- $file=pkgfile($PACKAGE,"wm");
+foreach my $package (@{$dh{DOPACKAGES}}) {
+# my $tmp=tmpdir($package);
+ my $file=pkgfile($package,"wm");
+ my @wm;
if ($file) {
@wm=filearray($file, '.');
}
- if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
+ if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
push @wm, @ARGV;
}
if (@wm && ! $dh{NOSCRIPTS}) {
foreach (@wm) {
- autoscript($PACKAGE,"postinst","postinst-wm","s:#WM#:$_:;s/#PRIORITY#/$dh{PRIORITY}/",);
- autoscript($PACKAGE,"prerm","prerm-wm","s:#WM#:$_:");
+ autoscript($package,"postinst","postinst-wm","s:#WM#:$_:;s/#PRIORITY#/$dh{PRIORITY}/",);
+ autoscript($package,"prerm","prerm-wm","s:#WM#:$_:");
}
}
}