aboutsummaryrefslogtreecommitdiff
path: root/system/freefont/doinst.sh
diff options
context:
space:
mode:
authorDugan Chen <dugan [underscore] c [at] fastmail [dot] fm>2010-05-11 22:55:17 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:55:17 +0200
commit832b1e03377af6a0cdd5783ac3260e57b18624c3 (patch)
treebdab0bf95a888f816abc0d7e9162ca0babc1dde3 /system/freefont/doinst.sh
parent0b8fd89fd65d0d6724963dd18109af0fcc5c9fe4 (diff)
system/freefont: Added to 12.1 repository
Diffstat (limited to 'system/freefont/doinst.sh')
-rw-r--r--system/freefont/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/freefont/doinst.sh b/system/freefont/doinst.sh
new file mode 100644
index 000000000000..bdb050188d6b
--- /dev/null
+++ b/system/freefont/doinst.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Update the X font indexes:
+if [ -x /usr/bin/mkfontdir -o -x /usr/X11R6/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/TTF
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi