summaryrefslogtreecommitdiff
path: root/system/un-fonts-core/doinst.sh
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-28 17:00:32 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-28 23:45:47 +0700
commit91e621c0a65bd35472645f4e67c06e6130531078 (patch)
treed05f7340c4ff4f18c1452c190f2aebf374882ce6 /system/un-fonts-core/doinst.sh
parentb6302a54efb01c821fc559d6c432cefc100c550d (diff)
downloadslackbuilds-91e621c0a65bd35472645f4e67c06e6130531078.tar.gz
system/un-fonts-core: Moved to system category.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/un-fonts-core/doinst.sh')
-rw-r--r--system/un-fonts-core/doinst.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/un-fonts-core/doinst.sh b/system/un-fonts-core/doinst.sh
new file mode 100644
index 0000000000..f7d24f5ca9
--- /dev/null
+++ b/system/un-fonts-core/doinst.sh
@@ -0,0 +1,13 @@
+# Update mkfontscale and mkfontdir:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+# Update the X font indexes:
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
+