aboutsummaryrefslogtreecommitdiff
path: root/system/adobe-source-sans-pro-font/doinst.sh
diff options
context:
space:
mode:
authorDugan Chen <thedoogster [at] gmail [dot] com>2012-12-16 17:43:47 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-23 09:16:32 -0500
commit5348ef7f2af521d72f1ab2a78240964cb4e0815a (patch)
treea86a4ac64a0ef2d528bb012efade24135b2ce897 /system/adobe-source-sans-pro-font/doinst.sh
parent28b3940fb5e24b42d429bff0374843aef7f5fc0e (diff)
system/adobe-source-sans-pro-font: Only install OTF fonts.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/adobe-source-sans-pro-font/doinst.sh')
-rw-r--r--system/adobe-source-sans-pro-font/doinst.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/system/adobe-source-sans-pro-font/doinst.sh b/system/adobe-source-sans-pro-font/doinst.sh
index 74022896fe77b..07732c33c3be4 100644
--- a/system/adobe-source-sans-pro-font/doinst.sh
+++ b/system/adobe-source-sans-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