From 4f577ba14b2e6e8571246717a1eec408c9b618ae Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 27 Jan 2002 00:25:37 +0000 Subject: r503: * dh_installman: more documentation about the .TH line. Closes: #129205 * dh_installxfonts: - Packages that use this should depend on xutils. See man page. - However, if you really want to, you can skip the dep, and the postinst will avoid running program that arn't available. Closes: #131053 - Use update-fonts-dir instead of handling encodings ourselves. Yay! - Pass only the last component of the directory name to update-fonts-*, since that's what they perfer now. - Other changes, chould fully comply with Debian X font policy now. --- autoscripts/postrm-xfonts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'autoscripts/postrm-xfonts') diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 29cec435..a9afcabe 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -1,22 +1,3 @@ -makefontdir() { - ENCDIR=/usr/lib/X11/fonts/encodings - if [ -d $ENCDIR -a -d $ENCDIR/large ]; then - /usr/bin/X11/mkfontdir -e $ENCDIR -e $ENCDIR/large "$@" - else - /usr/bin/X11/mkfontdir "$@" - fi -} - -fontdirs="#FONTDIRS#" -updatecmds="#UPDATECMDS#" - -if [ "$1" = "purge" -o "$1" = "remove" -o "$1" = "disappear" ]; then - for currentdir in $fontdirs; do - longdir=/usr/lib/X11/fonts/$currentdir - if [ -d $longdir ]; then - for currentcmd in $updatecmds; do - $currentcmd $longdir - done - fi - done +if [ "$1" != "upgrade" -a -x /usr/sbin/update-fonts-dir ]; then + #CMDS# fi -- cgit v1.2.3