diff options
author | Sven Gothel <[email protected]> | 2010-05-04 02:43:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-04 02:43:09 +0200 |
commit | 63916148e837942c9ec996320bda805e80d7e06e (patch) | |
tree | e45c041c05cf1ba33c3cd3af9fc09fdec7eb5ec8 /make/scripts/java-run.sh | |
parent | 10c26e556006b5727b0076fc2e486459a63bdf76 (diff) |
Move all scripts to it's folder
Diffstat (limited to 'make/scripts/java-run.sh')
-rwxr-xr-x | make/scripts/java-run.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/make/scripts/java-run.sh b/make/scripts/java-run.sh new file mode 100755 index 000000000..0246156db --- /dev/null +++ b/make/scripts/java-run.sh @@ -0,0 +1,37 @@ +#! /bin/sh + +function print_usage() { + echo "Usage: $0 [-libdir pre-lib-dir] jogl-build-dir ..." +} + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + PRELIB=$1 + shift + LD_LIBRARY_PATH=$PRELIB:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH +fi + +if [ -z "$1" ] ; then + echo JOGL BUILD DIR missing + print_usage + exit +fi + +. ./setenv-jogl.sh $1 +shift + +MOSX=0 +uname -a | grep -i Darwin && MOSX=1 + +# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" +# D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -Djogl.debug.GLSLState" +# D_ARGS="-Dnativewindow.debug.X11Util=true -Djogl.debug.GLDrawableFactory=true" +# D_ARGS="-Dnativewindow.debug.X11Util=true" + +java $X_ARGS $D_ARGS $* 2>&1 | tee java-run.log |