summaryrefslogtreecommitdiff
path: root/dh_installmime
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_installmime
parentae0346306694bb2c52193f6352755c223e6e8935 (diff)
downloaddebhelper-053f6f8b4e7431d32511aef209188a084e8c7e79.tar.gz
r420: big monsta changes
Diffstat (limited to 'dh_installmime')
-rwxr-xr-xdh_installmime17
1 files changed, 9 insertions, 8 deletions
diff --git a/dh_installmime b/dh_installmime
index 0dbc08b4..59d8c873 100755
--- a/dh_installmime
+++ b/dh_installmime
@@ -2,22 +2,23 @@
#
# Mime support.
+use strict;
use Debian::Debhelper::Dh_Lib;
init();
-foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
- $TMP=tmpdir($PACKAGE);
- $mime=pkgfile($PACKAGE,"mime");
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ my $tmp=tmpdir($package);
+ my $mime=pkgfile($package,"mime");
if ($mime ne '') {
- if (! -d "$TMP/usr/lib/mime/packages") {
- doit("install","-d","$TMP/usr/lib/mime/packages");
+ if (! -d "$tmp/usr/lib/mime/packages") {
+ doit("install","-d","$tmp/usr/lib/mime/packages");
}
- doit("install","-p","-m644",$mime,"$TMP/usr/lib/mime/packages/$PACKAGE");
+ doit("install","-p","-m644",$mime,"$tmp/usr/lib/mime/packages/$package");
if (! $dh{NOSCRIPTS}) {
- autoscript($PACKAGE,"postinst","postinst-mime");
- autoscript($PACKAGE,"postrm","postrm-mime")
+ autoscript($package,"postinst","postinst-mime");
+ autoscript($package,"postrm","postrm-mime")
}
}
}