aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build.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/build.sh
parentd1076008b08e2522b6596567a86b36339a02717f (diff)
Update build scripts, add cross building scripts
Diffstat (limited to 'scripts/build.sh')
-rw-r--r--scripts/build.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 3a6a6f0..4d8291f 100644
--- a/scripts/build.sh
+++ b/scripts/build.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