Repo consolidation update: new jcheck published, jdk10/master populated!

Erik Joelsson erik.joelsson at oracle.com
Thu Sep 14 18:03:42 UTC 2017


Hello Martin,

On 2017-09-14 10:22, Martin Buchholz wrote:
> I tried out jdk10 master for a test drive.  Notes:
>
> I had to amend my jdk build tree version detector as follows:
>
>
> sed_if_file_found() {
>    if [[ -f "${@: -1}" ]]; then sed -E "$@"; fi
> }
>
> major() {
>    # works with jdk10 post-repo consolidation
>    sed_if_file_found -n \
>      -e 's/^DEFAULT_VERSION_MAJOR=([0-9]+)$/\1/p' \
>      "make/autoconf/version-numbers"
>    # works with jdk8
>    sed_if_file_found -n \
>      -e 's/^DEFAULT_VERSION_MAJOR=([0-9]+)$/\1/p' \
>      -e 's/^JDK_MINOR_VERSION=([0-9]+)$/\1/p' \
>      "common/autoconf/version-numbers"
>    # works with jdk7
>    sed_if_file_found -n -e 's/JDK_MINOR_VERSION *= *([0-9]+)$/\1/p' \
>      "jdk/make/common/shared/Defs.gmk"
> }
>
> (Is there a blessed way to do this?)
Not that I can think of. The directory moved because having a "common" 
no longer made sense, so we decided to put everything build related in 
"make".

What is the use case for that script? I've never not known what source 
I'm dealing with. Just curious.

/Erik

/Erik


More information about the jdk10-dev mailing list