1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/net/frost/files/wrapper.sh
Mario Sergio Fujikawa Ferreira eac3f885cc Update to snapshot 20041202
Submitted by:	Peter Thoenen <eol1@yahoo.com>
2004-12-31 11:51:12 +00:00

33 lines
1.0 KiB
Bash

#!/bin/sh
export JAVA_VERSION
PREFIX="%%PREFIX%%"
JAVA_VERSION="%%JAVA_VERSION%%"
JAVAVM="%%JAVAVM%%"
JAR_DIR="%%JAR_DIR%%"
JAR_FILE="%%JAR_FILE%%"
DATADIR="%%DATADIR%%"
HOME_DIR=${HOME}/.frost
CLASSPATH="${PREFIX}/${JAR_DIR}/BCastle.jar:${PREFIX}/${JAR_DIR}/fec-native.jar:${PREFIX}/${JAR_DIR}/fecImpl.jar:${PREFIX}/${JAR_DIR}/frost.jar:${PREFIX}/${JAR_DIR}/genChkImpl.jar:${PREFIX}/${JAR_DIR}/jocache.jar:${PREFIX}/${JAR_DIR}/mailapi.jar:${PREFIX}/${JAR_DIR}/skinlf.jar:${PREFIX}/${JAR_DIR}/skinlfFix.jar:${PREFIX}/${JAR_DIR}/smtp.jar:${PREFIX}/${JAR_DIR}/xercesImpl.jar:${PREFIX}/${JAR_DIR}/xml-apis.jar"
if [ ! -d ${HOME_DIR}/config ]
then
mkdir -p ${HOME_DIR}/config
fi
ln -sf ${PREFIX}/${DATADIR}/boards.xml.default \
${HOME_DIR}/config/boards.xml.default
if [ ! -d ${HOME_DIR}/themes ]
then
mkdir -p ${HOME_DIR}/themes
fi
ln -sf ${PREFIX}/${DATADIR}/themepack.zip ${HOME_DIR}/themes/themepack.zip
ln -sf ${PREFIX}/${DATADIR}/aquathemepack.zip \
${HOME_DIR}/themes/aquathemepack.zip
cd ${HOME_DIR} &&
exec ${JAVAVM} -cp $CLASSPATH frost.Frost "${@}"