[46257] trunk/dports/x11/xinit/files/font_cache.sh
jeremyhu at macports.org
jeremyhu at macports.org
Sun Feb 1 11:07:52 PST 2009
Revision: 46257
http://trac.macports.org/changeset/46257
Author: jeremyhu at macports.org
Date: 2009-02-01 11:07:52 -0800 (Sun, 01 Feb 2009)
Log Message:
-----------
xinit: font_cache: Only do fc-cache if fontconfig is actually installed
Modified Paths:
--------------
trunk/dports/x11/xinit/files/font_cache.sh
Modified: trunk/dports/x11/xinit/files/font_cache.sh
===================================================================
--- trunk/dports/x11/xinit/files/font_cache.sh 2009-02-01 19:02:23 UTC (rev 46256)
+++ trunk/dports/x11/xinit/files/font_cache.sh 2009-02-01 19:07:52 UTC (rev 46257)
@@ -187,15 +187,17 @@
IFS=$OIFS
# Finally, update fontconfig's cache
- echo "font_cache: Updating FC cache"
- if [[ $system == 1 ]] ; then
- ${X11DIR}/bin/fc-cache -s \
- $([[ $force == 1 ]] && echo "-f -r") \
- $([[ $verbose == 1 ]] && echo "-v")
- else
- ${X11DIR}/bin/fc-cache \
- $([[ $force == 1 ]] && echo "-f -r") \
- $([[ $verbose == 1 ]] && echo "-v")
+ if [[ -x ${X11DIR}/bin/fc-cache ]] ; then
+ echo "font_cache: Updating FC cache"
+ if [[ $system == 1 ]] ; then
+ ${X11DIR}/bin/fc-cache -s \
+ $([[ $force == 1 ]] && echo "-f -r") \
+ $([[ $verbose == 1 ]] && echo "-v")
+ else
+ ${X11DIR}/bin/fc-cache \
+ $([[ $force == 1 ]] && echo "-f -r") \
+ $([[ $verbose == 1 ]] && echo "-v")
+ fi
fi
echo "font_cache: Done"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090201/abf6cac1/attachment.html>
More information about the macports-changes
mailing list