#! /bin/bash # # Copyright (c) 2004, Jochen Maes # Copyright (c) 2004, Karl Trygve Kalleberg # Copyright (c) 2004, Gentoo Foundation # # Licensed under the GNU General Public License, v2 azudir=/usr/lib/azureus dotazudir=${HOME}/.Azureus gentoocfg=${dotazudir}/gentoo.config if [ -f ${gentoocfg} ] ; then . ${gentoocfg} else if [ ! -e ${dotazudir} ] ; then mkdir ${dotazudir} echo "Creating ${dotazudir}" fi # Setup defaults UI_OPTIONS="--ui=swt" # Create the config file cat > ${gentoocfg} <' # When selecting multiple, use '--uis=,' UI_OPTIONS="--ui=swt" END fi cd ${dotazudir} CLASSPATH=$(java-config -p junit,log4j,commons-cli-1,swt-3):${azudir}/azureus.jar:${azudir}/seda.jar java -cp $CLASSPATH -Djava.library.path=/usr/lib org.gudy.azureus2.ui.swt.Main "$1"