summaryrefslogtreecommitdiff
path: root/system/ttf-open-sans/doinst.sh
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-08-30 09:29:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-30 09:29:42 +0700
commit0f3431376ce79d399310676f66faa0743250f58e (patch)
treef4374b187a2e6850de5bef35b78627542b4e0579 /system/ttf-open-sans/doinst.sh
parent8ec15ab0220974e824977ee7df01e4dfce56fe50 (diff)
downloadslackbuilds-0f3431376ce79d399310676f66faa0743250f58e.tar.gz
system/ttf-open-sans: Added (True Type Font).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ttf-open-sans/doinst.sh')
-rw-r--r--system/ttf-open-sans/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/ttf-open-sans/doinst.sh b/system/ttf-open-sans/doinst.sh
new file mode 100644
index 0000000000..8fec9f5340
--- /dev/null
+++ b/system/ttf-open-sans/doinst.sh
@@ -0,0 +1,11 @@
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi