summaryrefslogtreecommitdiff
path: root/dh_installxaw
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_installxaw
parentae0346306694bb2c52193f6352755c223e6e8935 (diff)
downloaddebhelper-053f6f8b4e7431d32511aef209188a084e8c7e79.tar.gz
r420: big monsta changes
Diffstat (limited to 'dh_installxaw')
-rwxr-xr-xdh_installxaw21
1 files changed, 11 insertions, 10 deletions
diff --git a/dh_installxaw b/dh_installxaw
index 5cb94e24..e5ecf93d 100755
--- a/dh_installxaw
+++ b/dh_installxaw
@@ -3,23 +3,24 @@
# Integration with xaw-wrappers
#
# If debian/xaw-wrappers file exists, save it to
-# $TMP/usr/share/xaw-wrappers/config/$PACKAGE
+# $tmp/usr/share/xaw-wrappers/config/$package
#
# Also, add calls to postinst and postrm.
+use strict;
use Debian::Debhelper::Dh_Lib;
init();
-foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
- $TMP=tmpdir($PACKAGE);
- $xaw=pkgfile($PACKAGE,'xaw');
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ my $tmp=tmpdir($package);
+ my $xaw=pkgfile($package,'xaw');
if ($xaw ne '') {
- if (! -d "$TMP/usr/share/xaw-wrappers/config") {
- doit("install","-d","$TMP/usr/share/xaw-wrappers/config");
+ if (! -d "$tmp/usr/share/xaw-wrappers/config") {
+ doit("install","-d","$tmp/usr/share/xaw-wrappers/config");
}
doit("install","-p","-m644",$xaw,
- "$TMP/usr/share/xaw-wrappers/config/$PACKAGE");
+ "$tmp/usr/share/xaw-wrappers/config/$package");
if (! $dh{NOSCRIPTS}) {
# Parse the xaw conf file to figure out what programs
@@ -54,11 +55,11 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$remove_opts.="'$data{'link-name'} $data{wrapped}'";
}
- autoscript($PACKAGE,"postinst","postinst-xaw",
+ autoscript($package,"postinst","postinst-xaw",
"s:#OPTS#:$install_opts:");
- autoscript($PACKAGE,"prerm","prerm-xaw",
+ autoscript($package,"prerm","prerm-xaw",
"s:#OPTS#:$remove_opts:");
- autoscript($PACKAGE,"postrm","postrm-xaw");
+ autoscript($package,"postrm","postrm-xaw");
}
}
}