From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master
openjdk: updated latest scripts to pull openjdk zulu distributions from
other new location
Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
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
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/osv-dev/000000000000ef458a058dbf1af9%40google.com.
For more options, visit https://groups.google.com/d/optout.