summaryrefslogtreecommitdiff
path: root/multimedia/projectx/files/project-x.sh.in
blob: ecd37fb7b4acac4d09b2cce6afeae070b819d238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# $FreeBSD$

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

exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/ProjectX.jar" "$@"