Changeset 9


Ignore:
Timestamp:
Jun 8, 2010, 2:28:40 PM (15 years ago)
Author:
dmik
Message:

make/defs: Make sure GetVersion returns for a string that doesn't contain the X.Y pattern to avoid bash errors complaining that the argument to [ is not integer.

File:
1 edited

Legend:

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

    r2 r9  
    5959endef
    6060
    61 # Checks an ALT value for spaces (should be one word), 
     61# Checks an ALT value for spaces (should be one word),
    6262#       warns and returns Check_ALT_$1 if spaces
    6363define AltCheckSpaces
     
    116116# Given a line of text, get the major.minor version number from it
    117117define GetVersion
    118 $(shell echo $1 | sed -e 's@[^1-9]*\([1-9][0-9]*\.[0-9][0-9]*\).*@\1@' )
     118$(shell echo $1 | sed -ne 's@[^1-9]*\([1-9][0-9]*\.[0-9][0-9]*\).*@\1@p')
    119119endef
    120120
     
    291291#
    292292#  Recommended setting: 2 seems to be ideal for single cpu machines,
    293 #                       2 times the number of CPU's is a basic formula, 
    294 #                       but probably not more than 4 if the machine is 
    295 #                       being shared by others, or the machine is limited 
     293#                       2 times the number of CPU's is a basic formula,
     294#                       but probably not more than 4 if the machine is
     295#                       being shared by others, or the machine is limited
    296296#                       in RAM or swap.
    297297#
     
    411411endif
    412412
    413 # CACERTS_FILE: if OPENJDK is false and the internal version of the file 
    414 #               (that is, non-empty) is available, use it, otherwise use an 
     413# CACERTS_FILE: if OPENJDK is false and the internal version of the file
     414#               (that is, non-empty) is available, use it, otherwise use an
    415415#               empty keystore.
    416416#
     
    465465#   NOTE: ISA_DIR is usually empty, on Solaris it might be /sparcv9 or /amd64
    466466BINDIR      = $(OUTPUTDIR)/bin$(ISA_DIR)
    467  
     467
    468468# MOZILLA_HEADERS_PATH: path to mozilla header files for plugin
    469469ifdef ALT_MOZILLA_HEADERS_PATH
     
    481481     CUPS_HEADERS_PATH:=$(call FullPath,$(ALT_CUPS_HEADERS_PATH))
    482482     CUPS_HEADERS_PATH:=$(call AltCheckValue,CUPS_HEADERS_PATH)
    483   else 
     483  else
    484484    CUPS_HEADERS_PATH:= \
    485485      $(shell if [ -d "$(JDK_CUPS_HEADERS_PATH)" ]; then \
Note: See TracChangeset for help on using the changeset viewer.