summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-xfonts20
-rw-r--r--autoscripts/postrm-xfonts23
2 files changed, 4 insertions, 39 deletions
diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts
index af02e124..4c5ab1b8 100644
--- a/autoscripts/postinst-xfonts
+++ b/autoscripts/postinst-xfonts
@@ -1,19 +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
-}
-
-if [ "$1" = "configure" ]; then
- fontdirs="#FONTDIRS#"
- updatecmds="#UPDATECMDS#"
-
- for dir in $fontdirs; do
- for currentcmd in $updatecmds; do
- $currentcmd /usr/lib/X11/fonts/$dir
- done
- done
+if [ -x /usr/sbin/update-fonts-dir ]; then
+ #CMDS#
fi
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