summaryrefslogtreecommitdiffstats
path: root/system/adobe-source-code-pro-font/doinst.sh
diff options
context:
space:
mode:
author Dugan Chen <thedoogster [at] gmail [dot] com>2012-12-16 17:43:45 -0500
committer dsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:31 -0500
commit28b3940fb5e24b42d429bff0374843aef7f5fc0e (patch)
tree8acd86209d5cb46e4cf632289abfa8edc0d85ec3 /system/adobe-source-code-pro-font/doinst.sh
parent29d7ee8bb3b2262b00b6c79cd267281f53ae306e (diff)
downloadslackbuilds-28b3940fb5e24b42d429bff0374843aef7f5fc0e.tar.gz
slackbuilds-28b3940fb5e24b42d429bff0374843aef7f5fc0e.tar.xz
system/adobe-source-code-pro-font: Only install OTF fonts.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/adobe-source-code-pro-font/doinst.sh')
-rw-r--r--system/adobe-source-code-pro-font/doinst.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/system/adobe-source-code-pro-font/doinst.sh b/system/adobe-source-code-pro-font/doinst.sh
index 74022896fe..07732c33c3 100644
--- a/system/adobe-source-code-pro-font/doinst.sh
+++ b/system/adobe-source-code-pro-font/doinst.sh
@@ -1,16 +1,8 @@
-# Update mkfontscale and mkfontdir:
+# Update the X font indexes:
if [ -x /usr/bin/mkfontdir ]; then
- ( cd /usr/share/fonts/OTF
- mkfontscale .
- mkfontdir .
- )
- ( cd /usr/share/fonts/TTF
- mkfontscale .
- mkfontdir .
- )
+ /usr/bin/mkfontscale /usr/share/fonts/OTF
+ /usr/bin/mkfontdir /usr/share/fonts/OTF
fi
-
-# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi