diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2010-05-11 22:55:26 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:26 +0200 |
commit | 3879f716289730666f23efc18ca1cd5229ecbfdd (patch) | |
tree | d240f63355b8f17d3c033084d4f5bd603e2dd008 /system/profont/doinst.sh | |
parent | 692d3b71e71eb3ef0c044a6b56f82b795afa8d0d (diff) | |
download | slackbuilds-3879f716289730666f23efc18ca1cd5229ecbfdd.tar.gz slackbuilds-3879f716289730666f23efc18ca1cd5229ecbfdd.tar.xz |
system/profont: Added to 12.1 repository
Diffstat (limited to 'system/profont/doinst.sh')
-rw-r--r-- | system/profont/doinst.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/system/profont/doinst.sh b/system/profont/doinst.sh new file mode 100644 index 0000000000..e42f5f3968 --- /dev/null +++ b/system/profont/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 |