summaryrefslogtreecommitdiff
path: root/system/hack-font-ttf/doinst.sh
diff options
context:
space:
mode:
authorrfmae <rf.mae.git@gmail.com>2015-10-06 22:24:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-06 22:24:16 +0700
commitb10091bffcc83db5bbeda11c59121e30ee2453eb (patch)
tree7da4579d64f8ce4bfbc36a47394627580b8c11d7 /system/hack-font-ttf/doinst.sh
parent54336244ea6da0f42ed5344f3c291eb695b7abf3 (diff)
downloadslackbuilds-b10091bffcc83db5bbeda11c59121e30ee2453eb.tar.gz
system/hack-font-ttf: Added (font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/hack-font-ttf/doinst.sh')
-rw-r--r--system/hack-font-ttf/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/hack-font-ttf/doinst.sh b/system/hack-font-ttf/doinst.sh
new file mode 100644
index 0000000000..bdb050188d
--- /dev/null
+++ b/system/hack-font-ttf/doinst.sh
@@ -0,0 +1,11 @@
+#!/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