aboutsummaryrefslogtreecommitdiffstats
path: root/make/java-run-newt.sh
blob: 39654d03b8d44bfb0c067f1dc4eed79a9fd0a670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /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

if [ $MOSX -eq 1 ] ; then
    X_ARGS="-XstartOnFirstThread"
fi

java $X_ARGS -Djava.awt.headless=true com.jogamp.newt.util.MainThread $* 2>&1 | tee java-run-newt.log