#!/bin/sh # # $FreeBSD: /tmp/pcvs/ports/net-p2p/azureus/files/Attic/azureus.in,v 1.2 2007-10-03 03:55:33 edwin Exp $ # java export JAVA_VERSION="%%JAVA_VERSION%%" export JAVA_OS="%%JAVA_OS%%" ECLIPSE_BASE=%%LOCALBASE%%/eclipse ECLIPSE_SWT_JAR=%%SWTJAR%% LIB_PATH=%%LIBDIR%% CLASS_PATH=:%%JAVAJARDIR%%/%%JARFILE%%:${ECLIPSE_SWT_JAR} BROWSERS="xulrunner firefox seamonkey mozilla" if [ ! "${MOZILLA_FIVE_HOME}" ]; then for browser in ${BROWSERS}; do if [ -d "%%LOCALBASE%%/lib/${browser}" ]; then MOZILLA_FIVE_HOME="%%LOCALBASE%%/lib/${browser}" break; fi done fi if [ "${MOZILLA_FIVE_HOME}" ];then LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME}" export MOZILLA_FIVE_HOME LD_LIBRARY_PATH echo "MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME}" fi if [ "${DEBUG}" ] then echo "ECLIPSE_BASE = ${ECLIPSE_BASE}" echo "ECLIPSE_WS = ${ECLIPSE_WS}" echo "ECLIPSE_SWT = ${ECLIPSE_SWT}" echo "ECLIPSE_SWT_JAR = ${ECLIPSE_SWT_JAR}" echo "CLASS_PATH = ${CLASS_PATH}" echo "LIB_PATH = ${LIB_PATH}" fi exec "%%JAVA%%" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=linux" "-Dazureus.config.path=${HOME}/.Azureus" "-Duser.dir=${HOME}/.Azureus" org.gudy.azureus2.ui.swt.Main "${@}"