-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 which update-fonts-dir >/dev/null 2>&1; then
+ #CMDS#
fi