script revision a4cc8b77ecd336e612b9975067348036ce238b33
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# Author: Aaron Voisine <aaron@voisine.org>
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# System version: 3 for Panther, 4 for Tiger, 5 for Leopard
dc0093f44ee4fac928e006850f8ed53f68277af5eschrockexport VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'`
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# Warn the user about time-consuming generation of fontconfig caches.
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# TODO: Somehow keep in sync with ScriptExec and bin/inkscape.
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# Ideally refer to $XDG_CACHE_HOME/inkscape everywhere, but how?
dc0093f44ee4fac928e006850f8ed53f68277af5eschrocktest -f "${HOME}/.cache/inkscape/.fccache-new" || exit 12
dc0093f44ee4fac928e006850f8ed53f68277af5eschrockBASE=`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# TODO examine whether it would be wisest to move the code from inkscape shell
24da5b34f49324ed742a340010ed5bd3d4e06625rie# script and getdisplay.sh to here and only keep the real binary in bin. This
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# may make things easier on Leopard and may also help using Inkscape on the
dc0093f44ee4fac928e006850f8ed53f68277af5eschrock# command line.