From dbf66ad9e297d208029d6bb5e06f8b0f0c847d57 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 1 Jul 2009 07:34:59 +0000 Subject: Sync with jogl r2009 ; Unified setenv-jogl.sh, which works from the autobuild directory as well ; Unified java*.sh scripts git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@358 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- java-dbg.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'java-dbg.sh') diff --git a/java-dbg.sh b/java-dbg.sh index fd88bcd..455b8b6 100644 --- a/java-dbg.sh +++ b/java-dbg.sh @@ -1,7 +1,18 @@ #! /bin/sh -# java -Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log -java -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log -# java -Djogl.debug=all $* 2>&1 | tee java-dbg.log +CPOK=0 +echo $CLASSPATH | grep jogl && CPOK=1 +if [ $CPOK -eq 0 ] ; then + # Only valid for autobuild .. otherwise run manually with build-dir + . ./setenv-jogl.sh JOGL_ALL + echo $CLASSPATH | grep jogl && CPOK=1 +fi +if [ $CPOK -eq 0 ] ; then + echo No JOGL in CLASSPATH +else + # java -Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log + java -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all $* 2>&1 | tee java-dbg.log + # java -Djogl.debug=all $* 2>&1 | tee java-dbg.log +fi -- cgit v1.2.3