aboutsummaryrefslogtreecommitdiffstats
path: root/make/java-run-newt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/java-run-newt.sh')
-rwxr-xr-xmake/java-run-newt.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/make/java-run-newt.sh b/make/java-run-newt.sh
index bc9dc845c..289acdf7c 100755
--- a/make/java-run-newt.sh
+++ b/make/java-run-newt.sh
@@ -1,9 +1,22 @@
#! /bin/sh
function print_usage() {
- echo "Usage: $0 jogl-build-dir ..."
+ 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