Changeset 303


Ignore:
Timestamp:
Jun 27, 2011, 5:54:53 PM (14 years ago)
Author:
dmik
Message:

jdk/make: Support situations when the version number printed by "java -version" is located at the second line of input, not only the first one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/common/shared/Sanity.gmk

    r278 r303  
    106106_ZIP_VER   :=$(shell $(ZIPEXE) -help 2>&1 | $(HEAD) -n 4 | $(EGREP) '^Zip')
    107107_UNZIP_VER :=$(shell $(UNZIP)  -help 2>&1 | $(HEAD) -n 4 | $(EGREP) '^UnZip')
    108 _BOOT_VER  :=$(shell $(BOOTDIR)/bin/java -version 2>&1 | $(HEAD) -n 1)
     108_BOOT_VER  :=$(shell $(BOOTDIR)/bin/java -version 2>&1 | $(HEAD) -n 2 | $(EGREP) 'version')
    109109MAKE_VER   :=$(call GetVersion,"$(_MAKE_VER)")
    110110ZIP_VER    :=$(call GetVersion,"$(_ZIP_VER)")
Note: See TracChangeset for help on using the changeset viewer.