From 26fc54549b83f4efd2db161b86159dd65da974a9 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 27 Jan 2002 04:21:56 +0000 Subject: r505: * Improved dh_installxfonts some more: - Better indenting of generated code. - Better ordering of generated code (minor fix). --- autoscripts/postinst-xfonts | 2 +- autoscripts/postrm-xfonts | 2 +- debian/changelog | 8 ++++++++ dh_installxfonts | 8 ++++---- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts index 4c5ab1b8..8821bc5f 100644 --- a/autoscripts/postinst-xfonts +++ b/autoscripts/postinst-xfonts @@ -1,3 +1,3 @@ if [ -x /usr/sbin/update-fonts-dir ]; then - #CMDS# +#CMDS# fi diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index a9afcabe..b5dd964b 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -1,3 +1,3 @@ if [ "$1" != "upgrade" -a -x /usr/sbin/update-fonts-dir ]; then - #CMDS# +#CMDS# fi diff --git a/debian/changelog b/debian/changelog index ebe4eef3..93653398 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (3.4.3) unstable; urgency=low + + * Improved dh_installxfonts some more: + - Better indenting of generated code. + - Better ordering of generated code (minor fix). + + -- Joey Hess Sat, 26 Jan 2002 23:09:59 -0500 + debhelper (3.4.2) unstable; urgency=low * dh_installman: more documentation about the .TH line. Closes: #129205 diff --git a/dh_installxfonts b/dh_installxfonts index f8d9d469..fb7f7fee 100755 --- a/dh_installxfonts +++ b/dh_installxfonts @@ -58,16 +58,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # to call. my @cmds; foreach my $f (@fontdirs) { + # This must come before update-fonts-dir. + push @cmds, "update-fonts-scale $f" + if -f "$tmp/etc/X11/fonts/$f/$package.scale"; push @cmds, "update-fonts-dir $f"; push @cmds, "update-fonts-alias $f" if -f "$tmp/etc/X11/fonts/$f/$package.alias"; - # This must come _before_ mkfontdir, thus the unshift. - unshift @cmds, "update-fonts-scale $f" - if -f "$tmp/etc/X11/fonts/$f/$package.scale"; } autoscript($package, "postinst", "postinst-xfonts", - "s:#CMDS#:".join("\n", @cmds).":;"); + "s:#CMDS#:".join("\n", map { "\t$_" } @cmds).":;"); autoscript($package, "postrm", "postrm-xfonts", "s:#CMDS#:".join("\n", @cmds).":;"); } -- cgit v1.2.3