|
|
@@ -20,26 +20,24 @@ function download_jdk {
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-function build_mac_jdk {
|
|
|
- echo "> Getting the Mac JDK"
|
|
|
+function get_jdk_macos {
|
|
|
+ echo "> Getting the JDK for MacOS-$1"
|
|
|
|
|
|
- download_jdk x64 macos .tar.gz
|
|
|
- download_jdk aarch64 macos .tar.gz
|
|
|
+ download_jdk "$1" macos .tar.gz
|
|
|
|
|
|
echo "< OK!"
|
|
|
}
|
|
|
|
|
|
-# PARAMS arch
|
|
|
-function unpack_windows {
|
|
|
- echo ">> Getting the JDK for windows-$1"
|
|
|
+function get_jdk_windows {
|
|
|
+ echo ">> Getting the JDK for Windows-$1"
|
|
|
|
|
|
download_jdk "$1" windows .zip
|
|
|
|
|
|
echo "<< OK!"
|
|
|
}
|
|
|
|
|
|
-function unpack_linux {
|
|
|
- echo ">> Getting the JDK for linux-$1"
|
|
|
+function get_jdk_linux {
|
|
|
+ echo ">> Getting the JDK for Linux-$1"
|
|
|
|
|
|
download_jdk "$1" linux .tar.gz
|
|
|
|
|
|
@@ -48,63 +46,28 @@ function unpack_linux {
|
|
|
|
|
|
|
|
|
# PARAMS: os arch arch_unzipsfx
|
|
|
-function compile_other {
|
|
|
+function get_jdk {
|
|
|
echo "> Getting JDK for $1-$2"
|
|
|
|
|
|
- if [[ $1 != "windows" && $1 != "linux" ]]; then
|
|
|
+ if [[ $1 != "windows" && $1 != "linux" && $1 != "macos" ]]; then
|
|
|
echo "Unknown Platform $1. ERROR!!!"
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
# Depends on UNPACK and thus DOWNLOAD
|
|
|
if [ $1 == "windows" ]; then
|
|
|
- unpack_windows $2
|
|
|
+ get_jdk_windows $2
|
|
|
elif [ $1 == "linux" ]; then
|
|
|
- unpack_linux $2
|
|
|
+ get_jdk_linux $2
|
|
|
+ elif [ $1 == "macos" ]; then
|
|
|
+ get_jdk_macos $2
|
|
|
fi
|
|
|
|
|
|
echo "< OK!"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-# PARAMS: os arch arch_unzipsfx
|
|
|
-function build_other_jdk {
|
|
|
- echo "> Getting Package for $1-$2"
|
|
|
- compile_other $1 $2 $3 # Depend on Compile
|
|
|
-
|
|
|
- echo "< OK!"
|
|
|
-}
|
|
|
-
|
|
|
-if [ "x$TRAVIS" != "x" ]; then
|
|
|
- if [ "x$BUILD_X64" != "x" ]; then
|
|
|
- build_other_jdk windows x64 x64
|
|
|
- build_other_jdk linux x64 x64
|
|
|
- fi
|
|
|
- if [ "x$BUILD_X86" != "x" ]; then
|
|
|
- build_other_jdk windows x86-32 x86
|
|
|
- fi
|
|
|
- if [ "x$BUILD_OTHER" != "x" ]; then
|
|
|
- build_mac_jdk
|
|
|
- fi
|
|
|
-else
|
|
|
- if [ "x$PARALLEL" != "x" ];
|
|
|
- then
|
|
|
- build_mac_jdk &
|
|
|
- build_other_jdk linux x64 x64 &
|
|
|
- # Windows 32bit not by default build_other_jdk windows x86-32 x86 &
|
|
|
- build_other_jdk windows x64 x64 &
|
|
|
- else
|
|
|
- build_mac_jdk
|
|
|
- build_other_jdk linux x64 x64
|
|
|
- ## Windows 32bit not by default build_other_jdk windows x86-32 x86
|
|
|
- build_other_jdk windows x64 x64
|
|
|
- # Linux 32bit not supported... build_other_jdk linux x86-32
|
|
|
- fi
|
|
|
-
|
|
|
-fi
|
|
|
-
|
|
|
-if [ "x$PARALLEL" != "x" ];
|
|
|
-then
|
|
|
- wait
|
|
|
-fi
|
|
|
-cd ../../
|
|
|
+get_jdk linux x64
|
|
|
+get_jdk linux aarch64
|
|
|
+get_jdk windows x64
|
|
|
+#get_jdk macos x64
|
|
|
+#get_jdk macos aarch64
|