blob: f42bc4430b0a3ca1c0d8d7fff8d2200f58ceed7a (
plain)
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
41
42
|
#! /bin/bash
#
# Copyright (c) 2004, Jochen Maes <sejo@gentoo.org>
# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
# 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} <<END
# User Interface options:
# web - web based
# web2 - web based
# console - console based
# swt - swt (GUI) based
#
# When selecting just 1, use '--ui=<ui>'
# When selecting multiple, use '--uis=<ui>,<ui>'
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"
|