post_install()
{
	if [ -e /usr/bin/mkfontscale -a -e /usr/bin/mkfontdir -a -e /usr/bin/fc-cache ]; then
		echo -n "updating fonts cache..."
		mkfontscale /usr/share/fonts/X11/TTF
		mkfontdir /usr/share/fonts/X11/TTF
		/usr/bin/fc-cache --force --system-only
		echo "done."
	fi
}

post_upgrade()
{
	post_install
}


post_remove()
{
	post_install
}

op=$1
shift

$op $*
