aboutsummaryrefslogtreecommitdiffstats
path: root/make/java-run-newt.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-28 01:10:31 +0200
committerSven Gothel <[email protected]>2010-04-28 01:10:31 +0200
commit3dae4b359e9494c34cc6056e43f1c835fca53100 (patch)
tree72423a77830af29355466a588a0d0c0924983472 /make/java-run-newt.sh
parent897c7248f9895d828542d524b211b74efcc715d2 (diff)
Add custom.libdir property to sneak in eg a alt. GL lib
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