Browse Source

Dimitar Zhekov <jimmy@is-vn.bg>:

run mkttfontdir in the xfree86.cron job


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1712 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Dimitar Zhekov 21 years ago
parent
commit
3c4b4ea03a
2 changed files with 12 additions and 4 deletions
  1. +1
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +11
    -4
      package/x11/xfree86/xfree86.cron

+ 1
- 0
Documentation/Developers/CHANGELOG-RENE

@ -8,6 +8,7 @@
updated terminus-font (4.05)
fixed zgv and xzgv to be be ANSI C compliant
really do not run fc-cache in xfree86
run mkttfontdir in the xfree86.cron job
- updated anjuta and moved it into the gnome24 repository
*) 2003-11-06 (2.0.0-rc2 - 2.0.0-rc3)

+ 11
- 4
package/x11/xfree86/xfree86.cron

@ -1,11 +1,18 @@
#!/bin/sh
echo "Running mkfontdir ..."
for i in /usr/X11R6/lib/X11/fonts/* ; do
if test -f $i/fonts.dir ; then mkfontdir $i ; fi
done ; unset i
echo "Running mkfontdir / mkttfontdir ..."
for dir in /usr/X11R6/lib/X11/fonts/* ; do
ttfiles="`ls $dir/*.ttf $dir/*.TTF 2> /dev/null`"
if [ "$ttfiles" ] ; then
( cd $dir
mkttfontdir $x > /dev/null )
fi
mkfontdir $dir || true
unset ttfiles
done ; unset dir
if [ "`which fc-cache`" ] ; then
echo "Running fc-cache ..."
fc-cache -v
fi

Loading…
Cancel
Save