summaryrefslogtreecommitdiffstats
path: root/system/wqy-microhei-font-ttf/doinst.sh
diff options
context:
space:
mode:
author vvoody2012-12-29 02:36:36 +0100
committer dsomero2012-12-30 04:25:35 +0100
commitf8a7fe5abbf02956acdfd9e9a9550b67bae60a79 (patch)
tree83d2da3f2aa1e0b43988ebe6f14fa87c14ceb679 /system/wqy-microhei-font-ttf/doinst.sh
parent55e3705248a89f4fc48360d690081acef539f69e (diff)
downloadslackbuilds-f8a7fe5abbf02956acdfd9e9a9550b67bae60a79.tar.gz
system/wqy-microhei-font-ttf: Added (Wen Quan Yi Micro Hei CJK Font)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/wqy-microhei-font-ttf/doinst.sh')
-rw-r--r--system/wqy-microhei-font-ttf/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/wqy-microhei-font-ttf/doinst.sh b/system/wqy-microhei-font-ttf/doinst.sh
new file mode 100644
index 0000000000..e9c87ecd72
--- /dev/null
+++ b/system/wqy-microhei-font-ttf/doinst.sh
@@ -0,0 +1,11 @@
+# There's no need to chroot and do this during initial
+# install, since there is a post-install script that
+# does the same thing, saving time.
+# Update X font indexes and the font cache:
+if [ -x /usr/bin/mkfontdir ]; then
+ /usr/bin/mkfontscale /usr/share/fonts/TTF
+ /usr/bin/mkfontdir /usr/share/fonts/TTF
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache /usr/share/fonts/TTF
+fi