From: joey Date: Sun, 27 Jan 2002 04:21:56 +0000 (+0000) Subject: r505: * Improved dh_installxfonts some more: X-Git-Tag: version_2.0.101~94 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=26fc54549b83f4efd2db161b86159dd65da974a9;p=debhelper.git r505: * Improved dh_installxfonts some more: - Better indenting of generated code. - Better ordering of generated code (minor fix). --- diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts index 4c5ab1b..8821bc5 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 a9afcab..b5dd964 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 ebe4eef..9365339 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 f8d9d46..fb7f7fe 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).":;"); }