aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/setenv-jogl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/setenv-jogl.sh')
-rwxr-xr-xmake/scripts/setenv-jogl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/scripts/setenv-jogl.sh b/make/scripts/setenv-jogl.sh
index 76fa40fc5..2b6985c74 100755
--- a/make/scripts/setenv-jogl.sh
+++ b/make/scripts/setenv-jogl.sh
@@ -57,8 +57,8 @@ GLUEGEN_OS=$GLUEGEN_BUILDDIR/obj
JUNIT_JAR=$GLUEGEN_DIR/make/lib/junit.jar
if [ -z "$ANT_PATH" ] ; then
- if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then
- ANT_PATH=/usr/share/ant
+ ANT_PATH=$(dirname `which ant`)/..
+ if [ -e $ANT_PATH/lib/ant.jar ] ; then
export ANT_PATH
echo autosetting ANT_PATH to $ANT_PATH
fi