VirtualBox

Changeset 89793 in vbox


Ignore:
Timestamp:
Jun 19, 2021 8:03:51 PM (4 years ago)
Author:
vboxsync
Message:

/Config.kmk: Tweak the VBOX_JAVA_FIGURE_VERSION macro to try grok useless opensdk output. bugref:9890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r89791 r89793  
    29612961        $(VBOX_JAVA_HOME)/include/$(VBOX_MD_OS)
    29622962endif # !darwin
     2963# The first transform the almost usless openjdk versions like "javac 9-Ubuntu" into something the 2nd expression groks.
    29632964VBOX_JAVA_FIGURE_VERSION = $(shell $(1) -version 2>&1 \
    2964         | $(SED_EXT) -n -e 's|^[^ ]* *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$(DOLLAR)|$$(expr \1 * 10000 + \2 * 100 + \3)|p' )
     2965        | $(SED_EXT) -n \
     2966        -e 's/ \([0-9][0-9]*\)\(-[[:alpha:]][[:alpha:]]\)$/ \1.0.0\2/' \
     2967        -e 's|^[^ ]* *\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$(DOLLAR)|$$(expr \1 * 10000 + \2 * 100 + \3)|p' )
    29652968
    29662969# Test C and C++ files.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette