* [gentoo-commits] gentoo-x86 commit in dev-util/eclipse-sdk/files/3.5: eclipse-3.5
@ 2010-03-03 8:50 Alistair Bush (ali_bush)
0 siblings, 0 replies; only message in thread
From: Alistair Bush (ali_bush) @ 2010-03-03 8:50 UTC (permalink / raw
To: gentoo-commits
ali_bush 10/03/03 08:50:53
Modified: eclipse-3.5
Log:
Make shell script POSIX compliant. Thanks for patch from Michał Górny <gentoo@mgorny.alt.pl>
(Portage version: 2.1.7.17/cvs/Linux x86_64)
Revision Changes Path
1.2 dev-util/eclipse-sdk/files/3.5/eclipse-3.5
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-sdk/files/3.5/eclipse-3.5?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-sdk/files/3.5/eclipse-3.5?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-sdk/files/3.5/eclipse-3.5?r1=1.1&r2=1.2
Index: eclipse-3.5
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/files/3.5/eclipse-3.5,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- eclipse-3.5 9 Dec 2009 18:19:32 -0000 1.1
+++ eclipse-3.5 3 Mar 2010 08:50:53 -0000 1.2
@@ -11,24 +11,27 @@
SLOT="3.5"
-[ -f "/etc/eclipserc-${SLOT}" ] && source "/etc/eclipserc-${SLOT}"
-[ -f "$HOME/gentoo/.eclipserc" ] && source "$HOME/gentoo/.eclipserc"
+[ -f "/etc/eclipserc-${SLOT}" ] && . "/etc/eclipserc-${SLOT}"
+[ -f "$HOME/gentoo/.eclipserc" ] && . "$HOME/gentoo/.eclipserc"
ECLIPSE_HOME=${ECLIPSE_HOME:="/usr/lib/eclipse-${SLOT}"}
ECLIPSE_BIN="${ECLIPSE_HOME}/eclipse"
if [ ! -x "${ECLIPSE_BIN}" ] ; then
echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr
- exit -1
+ exit 1
fi
if [ $(id -u) -eq 0 ] ; then
- echo "Do not run eclipse as root user! Exiting ..."
- exit -1
+ echo "Do not run eclipse as root user! Exiting ..." > /dev/stderr
+ exit 1
fi
-[[ "$(java-config -f)" =~ "gcj" ]] \
- && export JAVA_PKG_CLASSMAP="${ECLIPSE_HOME}/eclipse.gcjdb"
+case "$(java-config -f)" in
+ *gcj*)
+ export JAVA_PKG_CLASSMAP="${ECLIPSE_HOME}/eclipse.gcjdb"
+ ;;
+esac
eval $(gjl --package "swt-${SLOT}" --get-args)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-03 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-03 8:50 [gentoo-commits] gentoo-x86 commit in dev-util/eclipse-sdk/files/3.5: eclipse-3.5 Alistair Bush (ali_bush)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox