#!/bin/sh
#
# $FreeBSD: multimedia/projectx/files/project-x.sh.in 300896 2012-07-14 13:54:48Z beat $

case "$#" in
0)
	mkdir -p "${HOME}/.projectx"
	cd "${HOME}/.projectx"
	ln -sf /usr/local/share/java/projectx/*.txt /usr/local/share/java/projectx/htmls .
	if ! grep '^# ProjectX 0.90.4.00' X.ini >/dev/null 2>&1; then
		rm -f X.ini
	fi
	;;
esac

JAVA_VERSION="1.6+" exec "/usr/local/bin/java" -jar "/usr/local/share/java/projectx/ProjectX.jar" "$@"
