Bug#876426: Another attempt

Tim Van Holder tim.vanholder at gmail.com
Mon Oct 23 07:38:10 UTC 2017


I used separate .sh files this time (except for the docs).
Given that the next release is likely to be 18.3 rather than 9u1, it's
possible that 9 will be an "odd one out" type release. If desirable,
the behaviour here can be merged into the current .sh files; it's just
a matter of a) picking up binaries from the right place, and b) not
expecting man pages.

Files attached.
For the docs, it's enough to add the following cases:

  # GA release (jdk-9_doc-all.zip)
  if [[ $archive_name =~ jdk-(9)()_docs?-all\.zip ]]
  then
    j2se_release=${BASH_REMATCH[1]}
    j2se_update=${BASH_REMATCH[2]}
    if [[ $j2se_update != "" ]]
    then
      j2se_version_name="$j2se_release Update $j2se_update"
      j2se_version=${j2se_release}u${j2se_update}${revision}
    else
      j2se_version_name="$j2se_release GA"
      j2se_version=${j2se_release}${revision}
    fi
  fi

  # Early Access Release (jdk-9_doc-api-spec.tar.gz)
  if [[ $archive_name =~ jdk-(9)()_doc-api-spec.tar.gz ]]
  then
    j2se_release=${BASH_REMATCH[1]}
    j2se_update=${BASH_REMATCH[2]}
    if [[ $j2se_update != "" ]]
    then
      j2se_version_name="$j2se_release Update $j2se_update Early Access Release"
      j2se_version=${j2se_release}u${j2se_update}~ea${revision}
    else
      j2se_version_name="$j2se_release Early Access Release"
      j2se_version=${j2se_release}~ea${revision}
    fi
  fi

(I left a () matcher in there, in case there end up being 9u1/9.1/...
releases after all.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle-jdk9.sh
Type: application/x-sh
Size: 5495 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171023/49be6d77/attachment-0003.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle-jre9.sh
Type: application/x-sh
Size: 4887 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171023/49be6d77/attachment-0004.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle-server-jre9.sh
Type: application/x-sh
Size: 4968 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20171023/49be6d77/attachment-0005.sh>


More information about the pkg-java-maintainers mailing list