aboutsummaryrefslogtreecommitdiffstats
path: root/make/java-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/java-run.sh')
-rwxr-xr-xmake/java-run.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/make/java-run.sh b/make/java-run.sh
new file mode 100755
index 000000000..63fb6d3e9
--- /dev/null
+++ b/make/java-run.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+function print_usage() {
+ echo "Usage: $0 jogl-build-dir ..."
+}
+
+if [ -z "$1" ] ; then
+ echo JOGL BUILD DIR missing
+ print_usage
+ return
+fi
+
+. ./setenv-jogl.sh $1
+shift
+
+MOSX=0
+uname -a | grep -i Darwin && MOSX=1
+
+java $X_ARGS $* 2>&1 | tee java-run.log