summaryrefslogtreecommitdiff
blob: 11b76c4a69debf687d4c9d62ddd13a30fd0e8186 (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
#!/bin/sh

AZDIR=/opt/azureus

if [ ! -d $AZDIR ]; then
	echo "You have to edit this script and change the location"
	echo "where you installed Azureus"
fi

cd $AZDIR

run=1
while [ $run -gt 0 ]
do
	java -cp Azureus2.jar:swt.jar:swt-pi.jar:systray4j.jar:commons-cli-1.0.jar \
	-Djava.library.path="$AZDIR:$AZDIR/lib" org.gudy.azureus2.ui.common.Main $*
	if [ -f Azureus2-new.jar ] || [ -f ~/.azureus/Azureus2-new.jar ]
	then
		rm Azureus2-new.jar ~/.azureus/Azureus2-new.jar
		xmessage -center 'Please upgrade Azureus using Portage.'
	else
		run=0
	fi
done
[ -f Updater.jar ] && rm Updater.jar