slackbuilds_ponce/system/hack-font-ttf/doinst.sh
rfmae b10091bffc system/hack-font-ttf: Added (font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-10-06 22:24:16 +07:00

11 lines
234 B
Bash

#!/bin/sh
# Update the X font indexes:
if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
( cd /usr/share/fonts/TTF
mkfontscale .
mkfontdir .
)
fi
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi