diff options
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postinst-xfonts | 9 | ||||
-rw-r--r-- | autoscripts/postrm-xfonts | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/autoscripts/postinst-xfonts b/autoscripts/postinst-xfonts index ae999633..af02e124 100644 --- a/autoscripts/postinst-xfonts +++ b/autoscripts/postinst-xfonts @@ -1,3 +1,12 @@ +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#" diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 016a6392..851b61f5 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -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 |