diff options
author | joey <joey> | 2001-02-09 00:57:53 +0000 |
---|---|---|
committer | joey <joey> | 2001-02-09 00:57:53 +0000 |
commit | 053f6f8b4e7431d32511aef209188a084e8c7e79 (patch) | |
tree | 209a51c8c8fdbcce25c834198f1b3ef705dcb5b0 /dh_installxaw | |
parent | ae0346306694bb2c52193f6352755c223e6e8935 (diff) | |
download | debhelper-053f6f8b4e7431d32511aef209188a084e8c7e79.tar.gz |
r420: big monsta changes
Diffstat (limited to 'dh_installxaw')
-rwxr-xr-x | dh_installxaw | 21 |
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"); } } } |