#!/bin/sh -e

mkdir -p ~/.jvgs
cd ~/.jvgs
if [ ! -e 'resources' -o "`readlink resources`" != /usr/local/share/jvgs/resources ]; then
	rm -f resources
	ln -s /usr/local/share/jvgs/resources
fi
exec /usr/local/libexec/jvgs
