summaryrefslogtreecommitdiff
path: root/system/montecarlo/doinst.sh
diff options
context:
space:
mode:
authorAntonio Hernández Blas <hba.nihilismus@gmail.com>2010-05-11 22:55:22 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:55:22 +0200
commit88d10ee7e2266259ecdcd63fea6b7fd8e2f617e4 (patch)
tree7fec73bcd291f52e7de20d2c9c53f11cdb75f5ed /system/montecarlo/doinst.sh
parenta42b30f4b44350ce571ee08c11854c31800cdf3e (diff)
downloadslackbuilds-88d10ee7e2266259ecdcd63fea6b7fd8e2f617e4.tar.gz
system/montecarlo: Added to 12.1 repository
Diffstat (limited to 'system/montecarlo/doinst.sh')
-rw-r--r--system/montecarlo/doinst.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/system/montecarlo/doinst.sh b/system/montecarlo/doinst.sh
new file mode 100644
index 0000000000..e42f5f3968
--- /dev/null
+++ b/system/montecarlo/doinst.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Update mkfontscale and mkfontdir:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/misc
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+# Update the X font indexes:
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
+
+# For some versions before Slackware 12.0
+if [ -x /usr/X11R6/bin/mkfontdir ]; then
+ ( cd /usr/X11R6/lib/X11/fonts/misc
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+if [ -x /usr/X11R6/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi