aboutsummaryrefslogtreecommitdiffstats
path: root/games/ftjava/files/ftjava.sh.in
blob: f80e32705f6db1e81593a1d9d5c173f9f16604f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#
# $FreeBSD$

HOME_DIR=${HOME}/.ftjava
CLASSPATH=".:%%DATADIR%%/xerces.jar:%%DATADIR%%/activation.jar:%%DATADIR%%/mail.jar:/%%DATADIR%%/pop3.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

[ ! -d ${HOME_DIR}/fjava ] && \
    mkdir -p ${HOME_DIR}/ftjava

[ ! -d ${HOME_DIR}/ftjava/gui ] && \
    ln -s %%DATADIR%%/ftjava/gui ${HOME_DIR}/ftjava/gui

[ ! -d ${HOME_DIR}/ftjava/html ] && \
        ln -s %%DATADIR%%/ftjava/html ${HOME_DIR}/ftjava/html

[ ! -d ${HOME_DIR}/ftjava/mailman ] && \
        ln -s %%DATADIR%%/ftjava/mailman ${HOME_DIR}/ftjava/mailman

[ ! -d ${HOME_DIR}/ftjava/std ] && \
        ln -s %%DATADIR%%/ftjava/std ${HOME_DIR}/ftjava/std

[ ! -d ${HOME_DIR}/ftjava/util ] && \
        ln -s %%DATADIR%%/ftjava/util ${HOME_DIR}/ftjava/util

cd ${HOME_DIR} &&
    exec %%LOCALBASE%%/bin/java -cp ${CLASSPATH} ftjava.gui.FTJava "${@}"