[java-package] 02/03: Added support for FCS releases
Emmanuel Bourg
ebourg-guest at alioth.debian.org
Wed Aug 28 23:19:47 UTC 2013
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository java-package.
commit 33d3f7a9a395976e6da9d260fc8966be33198dcb
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Aug 29 01:14:21 2013 +0200
Added support for FCS releases
---
debian/changelog | 2 +-
lib/oracle-jdk.sh | 23 +++++++++++++++--------
lib/oracle-jre.sh | 23 +++++++++++++++--------
3 files changed, 31 insertions(+), 17 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index c070a82..ff7852a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,7 @@ java-package (0.53) UNRELEASED; urgency=low
* Team upload.
* Added support for early access releases (Closes: #721136)
- * Added support for GA releases
+ * Added support for GA and FCS releases
-- Emmanuel Bourg <ebourg at apache.org> Wed, 28 Aug 2013 19:34:41 +0200
diff --git a/lib/oracle-jdk.sh b/lib/oracle-jdk.sh
index 944240d..ea025f4 100644
--- a/lib/oracle-jdk.sh
+++ b/lib/oracle-jdk.sh
@@ -11,22 +11,29 @@ oracle_j2sdk_detect() {
j2se_arch=${BASH_REMATCH[4]}
if [[ $j2se_update != "" ]]
then
- j2se_type="Update"
+ j2se_version_name="$j2se_release Update $j2se_update"
j2se_version=${j2se_release}u${j2se_update}
else
- j2se_type=""
+ j2se_version_name="$j2se_release GA"
j2se_version=${j2se_release}
fi
fi
# Early Access Release (jdk-8-ea-bin-b103-linux-i586-15_aug_2013.tar.gz)
- if [[ $archive_name =~ jdk-([0-9]+)-ea-bin-(b[0-9]+)-linux-(i586|x64|amd64).*\.(bin|tar\.gz) ]]
+ if [[ $archive_name =~ jdk-([0-9]+)(u([0-9]+))?-(ea|fcs)-bin-(b[0-9]+)-linux-(i586|x64|amd64).*\.(bin|tar\.gz) ]]
then
j2se_release=${BASH_REMATCH[1]}
- j2se_update=${BASH_REMATCH[2]}
- j2se_arch=${BASH_REMATCH[3]}
- j2se_type="Early Access Release"
- j2se_version=${j2se_release}~ea-build-${j2se_update}
+ j2se_update=${BASH_REMATCH[3]}
+ j2se_build=${BASH_REMATCH[5]}
+ j2se_arch=${BASH_REMATCH[6]}
+ if [[ $j2se_update != "" ]]
+ then
+ j2se_version_name="$j2se_release Update $j2se_update Early Access Release Build $j2se_build"
+ j2se_version=${j2se_release}u${j2se_update}~ea-build-${j2se_update}
+ else
+ j2se_version_name="$j2se_release Early Access Release Build $j2se_build"
+ j2se_version=${j2se_release}~ea-build-${j2se_update}
+ fi
fi
if [[ $j2se_release > 0 ]]
@@ -73,7 +80,7 @@ oracle_j2sdk_detect() {
Detected product:
Java(TM) Development Kit (JDK)
- Standard Edition, Version $j2se_release $j2se_type $j2se_update
+ Standard Edition, Version $j2se_version_name
Oracle(TM)
EOF
if read_yn "Is this correct [Y/n]: "; then
diff --git a/lib/oracle-jre.sh b/lib/oracle-jre.sh
index c82dc3d..de5165e 100644
--- a/lib/oracle-jre.sh
+++ b/lib/oracle-jre.sh
@@ -11,22 +11,29 @@ oracle_j2re_detect() {
j2se_arch=${BASH_REMATCH[4]}
if [[ $j2se_update != "" ]]
then
- j2se_type="Update"
+ j2se_version_name="$j2se_release Update $j2se_update"
j2se_version=${j2se_release}u${j2se_update}
else
- j2se_type=""
+ j2se_version_name="$j2se_release GA"
j2se_version=${j2se_release}
fi
fi
# Early Access Release (jre-8-ea-bin-b103-linux-x64-15_aug_2013.tar.gz)
- if [[ $archive_name =~ jre-([0-9]+)-ea-bin-(b[0-9]+)-linux-(i586|x64|amd64).*\.(bin|tar\.gz) ]]
+ if [[ $archive_name =~ jre-([0-9]+)(u([0-9]+))?-(ea|fcs)-bin-(b[0-9]+)-linux-(i586|x64|amd64).*\.(bin|tar\.gz) ]]
then
j2se_release=${BASH_REMATCH[1]}
- j2se_update=${BASH_REMATCH[2]}
- j2se_arch=${BASH_REMATCH[3]}
- j2se_type="Early Access Release"
- j2se_version=${j2se_release}~ea-build-${j2se_update}
+ j2se_update=${BASH_REMATCH[3]}
+ j2se_build=${BASH_REMATCH[5]}
+ j2se_arch=${BASH_REMATCH[6]}
+ if [[ $j2se_update != "" ]]
+ then
+ j2se_version_name="$j2se_release Update $j2se_update Early Access Release Build $j2se_build"
+ j2se_version=${j2se_release}u${j2se_update}~ea-build-${j2se_update}
+ else
+ j2se_version_name="$j2se_release Early Access Release Build $j2se_build"
+ j2se_version=${j2se_release}~ea-build-${j2se_update}
+ fi
fi
if [[ $j2se_release > 0 ]]
@@ -57,7 +64,7 @@ oracle_j2re_detect() {
Detected product:
Java(TM) Runtime Environment (JRE)
- Standard Edition, Version $j2se_release $j2se_type $j2se_update
+ Standard Edition, Version $j2se_version_name
Oracle(TM)
EOF
if read_yn "Is this correct [Y/n]: "; then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/java-package.git
More information about the pkg-java-commits
mailing list