1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/ftjava/files/ftjava.sh.in
Martin Wilke 6580ac5c67 - Update to 1.2.1
PR:		116842
Submitted by:	Peter Thoenen <peter.thoenen@yahoo.com> (maintainer)
2007-10-23 14:10:58 +00:00

23 lines
603 B
Bash

#!/bin/sh
#
# $FreeBSD$
HOME_DIR=${HOME}/.ftjava
CLASSPATH=".:%%DATADIR%%/FTJava.jar:%%DATADIR%%/xerces.jar:%%DATADIR%%/activation.jar:%%DATADIR%%/mail.jar"
export JAVA_VERSION="%%JAVA_VERSION%%"
[ ! -d ${HOME_DIR}/OutgoingGames ] && \
mkdir -p ${HOME_DIR}/OutgoingGames
[ ! -d ${HOME_DIR}/IncomingGames ] && \
mkdir -p ${HOME_DIR}/IncomingGames
[ ! -d ${HOME_DIR}/Images ] && \
ln -s %%DATADIR%%/Images ${HOME_DIR}/Images
[ ! -d ${HOME_DIR}/Ships ] && \
ln -s %%DATADIR%%/Ships ${HOME_DIR}/Ships
cd ${HOME_DIR} &&
exec %%LOCALBASE%%/bin/java -cp ${CLASSPATH} ftjava.gui.FTJava "${@}"