summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-xfonts
diff options
context:
space:
mode:
authorjoey <joey>2002-01-27 00:25:37 +0000
committerjoey <joey>2002-01-27 00:25:37 +0000
commit4f577ba14b2e6e8571246717a1eec408c9b618ae (patch)
tree4b6df3d7ebe79466ad063ae8ce1c7b406771a7d9 /autoscripts/postrm-xfonts
parentd6f3bdb1c18ff73a755949134c8850a7b075289f (diff)
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.
Diffstat (limited to 'autoscripts/postrm-xfonts')
-rw-r--r--autoscripts/postrm-xfonts23
1 files changed, 2 insertions, 21 deletions
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