#!/bin/sh # # $FreeBSD: /tmp/pcvs/ports/net-p2p/vuze/files/vuze.in,v 1.2 2009-12-01 21:05:21 rnoland 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} #if [ ! "${MOZILLA_FIVE_HOME}" ]; then # if [ -d "%%LOCALBASE%%/lib/%%GECKO%%" ]; then # MOZILLA_FIVE_HOME="%%LOCALBASE%%/lib/%%GECKO%%" # fi #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=FreeBSD" "-Dazureus.config.path=${HOME}/.Azureus" "-Duser.dir=${HOME}/.Azureus" org.gudy.azureus2.ui.swt.Main "${@}"