blob: b8dfc7b0c6b5d67928f94c95ce0921ff4bf5c61e (
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
|
#! /bin/bash
#
# Tiny startup wrapper for the Eclipse 3.2.x series
#
# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
# Copyright (c) 2004, Gentoo Foundation
#
# Licensed under the GNU General Public License, version 2
#
[[ -f $HOME/.eclipserc ]] && $HOME/.eclipserc
ECLIPSE_HOME=${ECLIPSE_HOME:="/usr/lib/eclipse-3.2"}
ECLIPSE_BIN="${ECLIPSE_HOME}/eclipse"
if [ ! -x ${ECLIPSE_BIN} ] ; then
echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr
exit -1
fi
if [ $(whoami) == "root" ] ; then
echo "!!! You are running Eclipse as root. Be advised that this will modify the contents of"
echo "!!! /usr/lib/eclipse-3.2, and that such a modification may prevent you from safely"
echo "!!! upgrading to later 3.2 revisions."
echo
echo "!!! To ensure correct behavior on your next upgrade, do:"
echo "!!! 1) 'emerge unmerge \"=eclipse-sdk-3.2\"'"
echo "!!! 2) 'rm -rf /usr/lib/eclipse-3.2'"
echo "!!! 3) 'emerge eclipse-sdk'"
fi
if [[ -d /usr/lib/gecko-sdk/lib/ ]] && [[ -f /usr/lib/gecko-sdk/lib/libgtkembedmoz.so ]] ; then
export MOZILLA_FIVE_HOME="/usr/lib/gecko-sdk/lib/"
fi
exec ${ECLIPSE_BIN} "$@"
|