From: Waldemar Kozaczuk <
jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <
jwkoz...@gmail.com>
Branch: master
openjdk: updated latest scripts to pull openjdk zulu distributions from
other new location
Signed-off-by: Waldemar Kozaczuk <
jwkoz...@gmail.com>
---
diff --git a/openjdk10-zulu-java-base/latest.sh
b/openjdk10-zulu-java-base/latest.sh
--- a/openjdk10-zulu-java-base/latest.sh
+++ b/openjdk10-zulu-java-base/latest.sh
@@ -1,5 +1,6 @@
#!/bin/bash
-DOWNLOAD_URL=`wget -c -qO-
http://www.azul.com/downloads/zulu/zulu-linux |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' |
grep "jdk10.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
+DOWNLOAD_URL_SUFFIX=`wget -c -qO-
https://cdn.azul.com/zulu/bin/ | grep
-o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk10.*linux.*64.tar.gz\""
| grep -o "zulu.*tar.gz" | tail -n 1`
+DOWNLOAD_URL="
https://cdn.azul.com/zulu/bin/$DOWNLOAD_URL_SUFFIX"
VERSION=`echo $DOWNLOAD_URL | grep -o "zulu10.*linux_x64"`
if [ "$1" = "version" ]; then
diff --git a/openjdk11-zulu-java-base/latest.sh
b/openjdk11-zulu-java-base/latest.sh
--- a/openjdk11-zulu-java-base/latest.sh
+++ b/openjdk11-zulu-java-base/latest.sh
@@ -1,5 +1,6 @@
#!/bin/bash
-DOWNLOAD_URL=`wget -c -qO-
http://www.azul.com/downloads/zulu/zulu-linux |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' |
grep "jdk11.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
+DOWNLOAD_URL_SUFFIX=`wget -c -qO-
https://cdn.azul.com/zulu/bin/ | grep
-o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk11.*linux.*64.tar.gz\""
| grep -o "zulu.*tar.gz" | tail -n 1`
+DOWNLOAD_URL="
https://cdn.azul.com/zulu/bin/$DOWNLOAD_URL_SUFFIX"
VERSION=`echo $DOWNLOAD_URL | grep -o "zulu11.*linux_x64"`
if [ "$1" = "version" ]; then
diff --git a/openjdk12-zulu-java-base/latest.sh
b/openjdk12-zulu-java-base/latest.sh
--- a/openjdk12-zulu-java-base/latest.sh
+++ b/openjdk12-zulu-java-base/latest.sh
@@ -1,5 +1,6 @@
#!/bin/bash
-DOWNLOAD_URL=`wget -c -qO-
http://www.azul.com/downloads/zulu/zulu-linux |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' |
grep "jdk12.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
+DOWNLOAD_URL_SUFFIX=`wget -c -qO-
https://cdn.azul.com/zulu/bin/ | grep
-o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk12.*linux.*64.tar.gz\""
| grep -o "zulu.*tar.gz" | tail -n 1`
+DOWNLOAD_URL="
https://cdn.azul.com/zulu/bin/$DOWNLOAD_URL_SUFFIX"
VERSION=`echo $DOWNLOAD_URL | grep -o "zulu12.*linux_x64"`
if [ "$1" = "version" ]; then
diff --git a/openjdk8-zulu-compact-common/latest.sh
b/openjdk8-zulu-compact-common/latest.sh
--- a/openjdk8-zulu-compact-common/latest.sh
+++ b/openjdk8-zulu-compact-common/latest.sh
@@ -1,3 +1,5 @@
#!/bin/bash
-wget -c -qO-
http://www.azul.com/downloads/zulu/zulu-linux | grep -o '<a
href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk8.*linux.*64.tar.gz\"" | cut
-d'"' -f2 | head -1
+DOWNLOAD_URL_SUFFIX=`wget -c -qO-
https://cdn.azul.com/zulu/bin/ | grep
-o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk8.*linux.*64.tar.gz\"" |
grep -o "zulu.*tar.gz" | tail -n 1`
+DOWNLOAD_URL="
https://cdn.azul.com/zulu/bin/$DOWNLOAD_URL_SUFFIX"
+echo $DOWNLOAD_URL
diff --git a/openjdk9-zulu-java-base/latest.sh
b/openjdk9-zulu-java-base/latest.sh
--- a/openjdk9-zulu-java-base/latest.sh
+++ b/openjdk9-zulu-java-base/latest.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-DOWNLOAD_URL=`wget -c -qO-
http://www.azul.com/downloads/zulu/zulu-linux |
grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' |
grep "jdk9.*linux.*64.tar.gz\"" | grep -o "https:.*tar.gz" | head -n 1`
-VERSION=`echo $DOWNLOAD_URL | grep -o "zulu9.*linux_x64"`
+DOWNLOAD_URL_SUFFIX=`wget -c -qO-
https://cdn.azul.com/zulu/bin/ | grep
-o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | grep "jdk9.*linux.*64.tar.gz\"" |
grep -o "zulu.*tar.gz" | tail -n 1`
+DOWNLOAD_URL="
https://cdn.azul.com/zulu/bin/$DOWNLOAD_URL_SUFFIX"
if [ "$1" = "version" ]; then
echo $VERSION