[pkg-java] r19039 - trunk/website
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Apr 26 16:10:55 UTC 2016
Author: ebourg-guest
Date: 2016-04-26 16:10:55 +0000 (Tue, 26 Apr 2016)
New Revision: 19039
Modified:
trunk/website/checkjdk.php
Log:
Watch the OpenJDK 6 tags
Modified: trunk/website/checkjdk.php
===================================================================
--- trunk/website/checkjdk.php 2016-04-26 15:57:08 UTC (rev 19038)
+++ trunk/website/checkjdk.php 2016-04-26 16:10:55 UTC (rev 19039)
@@ -1,9 +1,12 @@
<?php
+#$JDK6_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/documentation/overview-156328.html";
+$JDK6_DOWNLOAD_URL="http://hg.openjdk.java.net/jdk6/jdk6/tags";
$JDK7_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javaseproducts/documentation/javase7supportreleasenotes-1601161.html";
$JDK8_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html";
$JDK9_DOWNLOAD_URL="https://jdk9.java.net/download/";
+$JAVA6_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK6_DOWNLOAD_URL | /bin/sed -n 's/.*\jdk\(6-b[0-9]\+\).*/\\1/p' | /usr/bin/head -n 1"));
$JAVA7_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK7_DOWNLOAD_URL | /bin/sed -n 's/.*\([7]\(u[0-9]\+\)\?-b[0-9]\+\).*/\\1/p' | /usr/bin/head -n 1"));
$JAVA8_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK8_DOWNLOAD_URL | /bin/sed -n 's/.*\([8]\(u[0-9]\+\)\?-b[0-9]\+\).*/\\1/p' | /usr/bin/head -n 1"));
$JAVA9_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK9_DOWNLOAD_URL | /bin/sed -n 's/.*\([9]-ea.\([0-9]\+\)\?\).*/9+\\2/p' | /usr/bin/head -n 1"));
@@ -32,6 +35,7 @@
<li><a href="http://hg.openjdk.java.net/jdk9/jdk9/archive/jdk-<?= $JAVA9_VERSION ?>.tar.gz">Java <?= $JAVA9_VERSION ?></a></li>
<li><a href="http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk<?= $JAVA8_VERSION ?>.tar.gz">Java <?= $JAVA8_VERSION ?></a></li>
<li><a href="http://hg.openjdk.java.net/jdk7u/jdk7u/archive/jdk<?= $JAVA7_VERSION ?>.tar.gz">Java <?= $JAVA7_VERSION ?></a></li>
+ <li><a href="http://hg.openjdk.java.net/jdk6/jdk6/archive/jdk<?= $JAVA6_VERSION ?>.tar.gz">Java <?= $JAVA6_VERSION ?></a></li>
</ul>
</div>
More information about the pkg-java-commits
mailing list