1 |
betelgeuse 08/04/20 14:39:08 |
2 |
|
3 |
Added: azureus-3.0.5.2-pre |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 2.1.5_rc3) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-p2p/azureus/files/azureus-3.0.5.2-pre |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/azureus-3.0.5.2-pre?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/azureus/files/azureus-3.0.5.2-pre?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: azureus-3.0.5.2-pre |
15 |
=================================================================== |
16 |
# |
17 |
# Copyright (c) 2005, Petteri Räty <betelgeuse@g.o> |
18 |
# Copyright (c) 2004, Jochen Maes <sejo@g.o> |
19 |
# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@g.o> |
20 |
# Copyright (c) 2004, Gentoo Foundation |
21 |
# |
22 |
# Licensed under the GNU General Public License, v2 |
23 |
|
24 |
# The Azureus config dir has moved |
25 |
olddotazudir="${HOME}/.Azureus" |
26 |
oldgentoocfg="${olddotazudir}/gentoo.config" |
27 |
dotazudir="${HOME}/.azureus" |
28 |
gentoocfg="${dotazudir}/gentoo.config" |
29 |
|
30 |
if [[ -f "${oldgentoocfg}" && -f "${gentoocfg}" ]]; then |
31 |
cat > /dev/stderr <<END |
32 |
You have gentoo.config files in both |
33 |
${dotazudir} and |
34 |
${olddotazudir} |
35 |
${olddotazudir} is deprecated and you can delete this directory. |
36 |
|
37 |
END |
38 |
fi |
39 |
|
40 |
create_initial_config() { |
41 |
if [[ ! -e "${dotazudir}" ]] ; then |
42 |
mkdir "${dotazudir}" |
43 |
echo "Creating ${dotazudir}" |
44 |
fi |
45 |
|
46 |
[[ ${UI} ]] && UI="swt" |
47 |
|
48 |
echo "Creating ${gentoocfg}" |
49 |
|
50 |
# Create the config file |
51 |
cat > "${gentoocfg}" <<END |
52 |
# User Interface options: |
53 |
# console - console based |
54 |
# swt - swt (GUI) based |
55 |
UI="${UI}" |
56 |
|
57 |
# Options you want to pass to the java binary |
58 |
JAVA_OPTIONS="" |
59 |
END |
60 |
} |
61 |
|
62 |
if [[ -f "${gentoocfg}" ]] ; then |
63 |
. "${gentoocfg}" |
64 |
echo "using ${gentoocfg}" |
65 |
elif [[ -f "${oldgentoocfg}" ]]; then |
66 |
. "${oldgentoocfg}" |
67 |
echo "using ${oldgentoocfg}" |
68 |
else |
69 |
create_initial_config |
70 |
fi |
71 |
|
72 |
if [[ -z "${UI}" && -n "${UI_OPTIONS}" ]]; then |
73 |
echo '${UI_OPTIONS} is no longer supported. ${UI} should be used instead instead' > /dev/stderr |
74 |
echo 'Unsetting ${UI_OPTIONS} and trying to migrate to ${UI}' > /dev/stderr |
75 |
if [[ ${UI_OPTIONS} = *--ui=console* ]]; then |
76 |
UI=console |
77 |
elif [[ ${UI_OPTIONS} = *--ui=swt* ]]; then |
78 |
UI=swt |
79 |
else |
80 |
echo 'Could not make $UI from $UI_OPTIONS' > /dev/stderr |
81 |
fi |
82 |
unset UI_OPTIONS |
83 |
fi |
84 |
|
85 |
if [[ -z "${UI}" ]]; then |
86 |
echo '$UI not set defaulting to swt' > /dev/stderr |
87 |
UI="swt" |
88 |
fi |
89 |
|
90 |
[[ ${UI} == swt ]] && UI=ui.swt |
91 |
[[ ${UI} == console ]] && UI=cl |
92 |
|
93 |
[[ ! -e "${dotazudir}" ]] && create_initial_config |
94 |
|
95 |
|
96 |
|
97 |
-- |
98 |
gentoo-commits@l.g.o mailing list |