aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rebuild.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-23 06:21:28 +0200
committerSven Gothel <[email protected]>2022-05-23 06:21:28 +0200
commit99c14cacc4c82b156b8950f1c81514912befc5f4 (patch)
treea82878fed275bc84d3c17276f182cba588090aba /scripts/rebuild.sh
parentd1076008b08e2522b6596567a86b36339a02717f (diff)
Update build scripts, add cross building scripts
Diffstat (limited to 'scripts/rebuild.sh')
-rw-r--r--scripts/rebuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh
index 44e9f12..54c658c 100644
--- a/scripts/rebuild.sh
+++ b/scripts/rebuild.sh
@@ -6,10 +6,14 @@ bname=`basename $0 .sh`
. $sdir/setup-machine-arch.sh
-logfile=$bname-$archabi.log
+logfile=$rootdir/$bname-$archabi.log
rm -f $logfile
-export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-$archabi
+if [ -e /usr/lib/jvm/java-17-openjdk-$archabi ] ; then
+ export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-$archabi
+elif [ -e /usr/lib/jvm/java-11-openjdk-$archabi ] ; then
+ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-$archabi
+fi
if [ ! -e $JAVA_HOME ] ; then
echo $JAVA_HOME does not exist
exit 1