#!/bin/sh # # Tiny startup wrapper for the Eclipse 3.0.x series # # Copyright (c) 2004, Karl Trygve Kalleberg # Copyright (c) 2004, Gentoo Foundation # Modified 2007 Lloeki for bin # # Licensed under the GNU General Public License, version 2 # if [ $(whoami) == "root" ] ; then echo "!!! You are running Eclipse as root. Be advised that this will modify the contents of" echo "!!! /opt/eclipse-3.1, and that such a modification may prevent you from safely" echo "!!! upgrading to later 3.1 revisions." echo echo "!!! To ensure correct behavior on your next upgrade, do:" echo "!!! 1) 'emerge unmerge \"=eclipse-sdk-bin-3.1\"'" echo "!!! 2) 'rm -rf /opt/eclipse-3.1'" echo "!!! 3) 'emerge eclipse-sdk-bin'" fi if [ -f $HOME/.eclipserc ] ; then . $HOME/.eclipserc fi if [ -z "${ECLIPSE_HOME}" ] ; then ECLIPSE_HOME=/opt/eclipse-3.1 fi pushd ${ECLIPSE_HOME} > /dev/null ./eclipse popd > /dev/null