summaryrefslogtreecommitdiff
path: root/system/adobe-source-code-pro-font/doinst.sh
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2012-11-23 16:25:01 +0100
committerdsomero <xgizzmo@slackbuilds.org>2012-11-24 15:36:46 -0500
commit07d35caffd119f24ff73100da8e3eeec597529e3 (patch)
treefbc454176b15b73df377b2dc5dec4a6d8751c6f3 /system/adobe-source-code-pro-font/doinst.sh
parent99e03c77a4dcb27538db5388ace782afafcde88e (diff)
downloadslackbuilds-07d35caffd119f24ff73100da8e3eeec597529e3.tar.gz
system/adobe-source-code-pro-font: Added (adobe monospace font).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/adobe-source-code-pro-font/doinst.sh')
-rw-r--r--system/adobe-source-code-pro-font/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/adobe-source-code-pro-font/doinst.sh b/system/adobe-source-code-pro-font/doinst.sh
new file mode 100644
index 0000000000..74022896fe
--- /dev/null
+++ b/system/adobe-source-code-pro-font/doinst.sh
@@ -0,0 +1,17 @@
+# Update mkfontscale and mkfontdir:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/OTF
+ mkfontscale .
+ mkfontdir .
+ )
+ ( 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
+