From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NmkIE-0003QP-T9 for garchives@archives.gentoo.org; Wed, 03 Mar 2010 08:50:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2F23E0B49; Wed, 3 Mar 2010 08:50:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BC09AE0B49 for ; Wed, 3 Mar 2010 08:50:54 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 6B74C1B45FD for ; Wed, 3 Mar 2010 08:50:54 +0000 (UTC) Received: from ali_bush by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1NmkI9-0002tY-LW for gentoo-commits@lists.gentoo.org; Wed, 03 Mar 2010 08:50:53 +0000 From: "Alistair Bush (ali_bush)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, ali_bush@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-util/eclipse-sdk/files/3.5: eclipse-3.5 X-VCS-Repository: gentoo-x86 X-VCS-Files: eclipse-3.5 X-VCS-Directories: dev-util/eclipse-sdk/files/3.5 X-VCS-Committer: ali_bush X-VCS-Committer-Name: Alistair Bush Content-Type: text/plain; charset=utf8 Message-Id: Sender: Alistair Bush Date: Wed, 03 Mar 2010 08:50:53 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 94576463-6f5c-4286-acca-2fa550569b46 X-Archives-Hash: 8ac25f38e8a23d87c39039046fbc8089 ali_bush 10/03/03 08:50:53 Modified: eclipse-3.5 Log: Make shell script POSIX compliant. Thanks for patch from Micha=C5=82 G= =C3=B3rny (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-s= dk/files/3.5/eclipse-3.5?rev=3D1.2&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-s= dk/files/3.5/eclipse-3.5?rev=3D1.2&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/eclipse-s= dk/files/3.5/eclipse-3.5?r1=3D1.1&r2=3D1.2 Index: eclipse-3.5 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 @@ =20 SLOT=3D"3.5" =20 -[ -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" =20 ECLIPSE_HOME=3D${ECLIPSE_HOME:=3D"/usr/lib/eclipse-${SLOT}"} ECLIPSE_BIN=3D"${ECLIPSE_HOME}/eclipse" =20 if [ ! -x "${ECLIPSE_BIN}" ] ; then echo "Failed to find executable '${ECLIPSE_BIN}'" > /dev/stderr - exit -1 + exit 1 fi =20 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 =20 -[[ "$(java-config -f)" =3D~ "gcj" ]] \ - && export JAVA_PKG_CLASSMAP=3D"${ECLIPSE_HOME}/eclipse.gcjdb" +case "$(java-config -f)" in + *gcj*) + export JAVA_PKG_CLASSMAP=3D"${ECLIPSE_HOME}/eclipse.gcjdb" + ;; +esac =20 eval $(gjl --package "swt-${SLOT}" --get-args) =20