]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-xfonts
r455: * Applied a patch from Anton Zinoviev <anton@lml.bas.bg> to pass -e
[debhelper.git] / autoscripts / postrm-xfonts
index 016a63925b1d05afc2ac3909cbdd39b3f9ba13e4..851b61f588f47baa99db676fe598411e6c59c60c 100644 (file)
@@ -1,10 +1,19 @@
+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#"
 
 for currentdir in $fontdirs; do
        longdir=/usr/lib/X11/fonts/$currentdir
        if [ -d $longdir ]; then
-               for file in fonts.dir fonts.alias; do
+               for file in fonts.dir fonts.alias encodings.dir; do
                        rm -f $longdir/$file
                done
                if [ $(find $longdir| wc -l) -eq 1 ]; then