[pkg-java] r19035 - trunk/website
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Apr 26 14:30:36 UTC 2016
Author: ebourg-guest
Date: 2016-04-26 14:30:35 +0000 (Tue, 26 Apr 2016)
New Revision: 19035
Added:
trunk/website/checkjdk.php
Log:
Add a page to track the Oracle Java releases
Added: trunk/website/checkjdk.php
===================================================================
--- trunk/website/checkjdk.php (rev 0)
+++ trunk/website/checkjdk.php 2016-04-26 14:30:35 UTC (rev 19035)
@@ -0,0 +1,37 @@
+<?php
+
+$JDK7_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html";
+$JDK8_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html";
+
+$JAVA7_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK7_DOWNLOAD_URL | /bin/sed -n 's/.*\([789]\(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/.*\([789]\(u[0-9]\+\)\?-b[0-9]\+\).*/\\1/p' | /usr/bin/head -n 1"));
+
+?>
+
+<html>
+<head>
+ <title>OpenJDK watch</title>
+ <link href="https://www.debian.org/debian.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+
+<div id="content">
+
+<h1>OpenJDK watch</h1>
+
+<p>This page tracks the latest versions of Java released by Oracle. Note that
+for a given update the Mercurial repository on the OpenJDK site will always
+show more recent build numbers. Since they do no map to an actual release
+they are ignored.</p>
+
+<p>Latest Java releases:</p>
+
+<ul>
+ <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>
+</ul>
+
+</div>
+
+</body>
+</html>
More information about the pkg-java-commits
mailing list