diff options
author | JOGAMP DEV TEAM <[email protected]> | 2013-06-08 00:16:23 +0200 |
---|---|---|
committer | JOGAMP DEV TEAM <[email protected]> | 2013-06-08 00:16:23 +0200 |
commit | eb68ddf38d413e4d0c112bf379ebde577c0959ca (patch) | |
tree | 8f15ae2a5a2defcd27b5dac16e7e94bce4320e35 /planet2 | |
parent | f79f9f28de07cd96be236cd0df42d6f52ffac5de (diff) |
Use JAVA_HOME of installed openjdk ..
Diffstat (limited to 'planet2')
-rw-r--r-- | planet2/update-planet.sh | 10 | ||||
-rw-r--r-- | planet2/update-stream.sh | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/planet2/update-planet.sh b/planet2/update-planet.sh index d012aca..ee07728 100644 --- a/planet2/update-planet.sh +++ b/planet2/update-planet.sh @@ -1,3 +1,9 @@ -cd /home/jogl/jogamp.org/planet2 -/opt-linux-x86_64/j2se6/bin/java -jar HungryHarry-SNAPSHOT-jar-with-dependencies.jar /srv/www/jogamp.org/planet2/config/planet-config.xml +#! /bin/sh + +PLANET2=/srv/www/jogamp.org/planet2 +cd $PLANET2 + +export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::") + +$JAVA_HOME/bin/java -jar HungryHarry-SNAPSHOT-jar-with-dependencies.jar $PLANET2/config/planet-config.xml diff --git a/planet2/update-stream.sh b/planet2/update-stream.sh index faa82bc..03ede32 100644 --- a/planet2/update-stream.sh +++ b/planet2/update-stream.sh @@ -1,2 +1,8 @@ -cd /home/jogl/jogamp.org/planet2 -/opt-linux-x86_64/j2se6/bin/java -jar HungryHarry-SNAPSHOT-jar-with-dependencies.jar /srv/www/jogamp.org/planet2/config/stream-config.xml +#! /bin/sh + +PLANET2=/srv/www/jogamp.org/planet2 +cd $PLANET2 + +export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::") + +$JAVA_HOME/bin/java -jar HungryHarry-SNAPSHOT-jar-with-dependencies.jar $PLANET2/config/stream-config.xml |