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_installxfonts | |
parent | ae0346306694bb2c52193f6352755c223e6e8935 (diff) | |
download | debhelper-053f6f8b4e7431d32511aef209188a084e8c7e79.tar.gz |
r420: big monsta changes
Diffstat (limited to 'dh_installxfonts')
-rwxr-xr-x | dh_installxfonts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/dh_installxfonts b/dh_installxfonts index 83f38c0a..024307cd 100755 --- a/dh_installxfonts +++ b/dh_installxfonts @@ -2,12 +2,13 @@ # # Integration with the Debian X11 font policy. +use strict; use Debian::Debhelper::Dh_Lib; init(); -foreach $PACKAGE (@{$dh{DOPACKAGES}}) { - $TMP=tmpdir($PACKAGE); - my $XFONTDIR="$TMP/usr/X11R6/lib/X11/fonts/"; +foreach my $package (@{$dh{DOPACKAGES}}) { + my $tmp=tmpdir($package); + my $XFONTDIR="$tmp/usr/X11R6/lib/X11/fonts/"; # Find all fint directories in the package build directory. opendir DIR, $XFONTDIR || next; @@ -19,16 +20,16 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { my @updatecmds=('/usr/bin/X11/mkfontdir'); foreach my $f (@fontdirs) { push @updatecmds, '/usr/sbin/update-fonts-alias' - if -f "$TMP/etc/X11/fonts/$f/$PACKAGE.alias"; + if -f "$tmp/etc/X11/fonts/$f/$package.alias"; # This must come _before_ mkfontdir, thus the unshift. unshift @updatecmds, '/usr/sbin/update-fonts-scale' - if -f "$TMP/etc/X11/fonts/$f/$PACKAGE.scale"; + if -f "$tmp/etc/X11/fonts/$f/$package.scale"; } - autoscript($PACKAGE, "postinst", "postinst-xfonts", + autoscript($package, "postinst", "postinst-xfonts", "s:#FONTDIRS#:".join(' ', @fontdirs). ":;s:#UPDATECMDS#:".join(' ', @updatecmds).":"); - autoscript($PACKAGE, "postrm", "postrm-xfonts", + autoscript($package, "postrm", "postrm-xfonts", "s:#FONTDIRS#:".join(' ', @fontdirs). ":;s:#UPDATECMDS#:".join(' ', @updatecmds).":"); } |