
# This will be performed on the local filesystem
if test "$rootdir" = "" || test "$rootdir" = /
then
    echo ""
    echo "Updating X font index cache for all available fonts at"
    echo "/usr/share/fonts/X11/ ..."
    echo ""
    for directory in /usr/share/fonts/X11/*
    do
        echo "Using \`mkfontscale' for fonts.dir at $directory"
        mkfontscale -b -s -l "$directory" && mkfontscale "$directory"
    done
    unset directory
    echo ""
fi

