script revision 0c59ff41412220fbb9570228f730a83a5697c81b
#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>
# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
CWD="$(cd "$(dirname "$0")" && pwd)"
# Warn the user about time-consuming generation of fontconfig caches.
# TODO: Somehow keep in sync with ScriptExec and bin/inkscape.
# Ideally refer to $XDG_CACHE_HOME/inkscape everywhere, but how?
test -f "${HOME}/.cache/inkscape/.fccache-new" || exit 12
BASE="$(echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//')"
cd "$BASE"
exec "$CWD/bin/inkscape" "$@"
# TODO examine whether it would be wisest to move the code from inkscape shell
# script and getdisplay.sh to here and only keep the real binary in bin. This
# may make things easier on Leopard and may also help using Inkscape on the
# command line.