slackbuilds_ponce/system/oldschool-pc-fonts/doinst.sh
B. Watson ce4d126849 system/oldschool-pc-fonts: New maintainer, optional console fonts.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2018-01-10 23:55:54 +07:00

10 lines
238 B
Bash

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