summaryrefslogtreecommitdiff
path: root/autoscripts/postrm-xfonts
diff options
context:
space:
mode:
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 29cec43..a9afcab 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