< prev index next >

make/ReleaseFile.gmk

Print this page




  36 ################################################################################
  37 
  38 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  39 
  40 # Common way to emit a line into the release or info file
  41 define info-file-item # name value
  42   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
  43 endef
  44 
  45 # Param 1 - The file containing the MODULES list
  46 define create-info-file
  47   $(if $(JDK_ARCH_ABI_PROP_NAME), \
  48     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
  49   $(call info-file-item, "SOURCE", "$(strip $(SOURCE_REVISION))")
  50   $(call info-file-item, "IMPLEMENTOR", "$(COMPANY_NAME)")
  51   $(if $(VENDOR_VERSION_STRING), \
  52     $(call info-file-item, "IMPLEMENTOR_VERSION", "$(VENDOR_VERSION_STRING)"))
  53   $(call info-file-item, "JAVA_VERSION_DATE", "$(VERSION_DATE)")
  54   $(call info-file-item, "OS_NAME", "$(RELEASE_FILE_OS_NAME)")
  55   $(call info-file-item, "OS_ARCH", "$(RELEASE_FILE_OS_ARCH)")

  56 endef
  57 
  58 # Param 1 - The file containing the MODULES list
  59 define prepare-info-file
  60   $(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%,%,$@))
  61   $(call MakeDir, $(@D))
  62   $(RM) $@
  63 endef
  64 
  65 define info-file
  66   $(call prepare-info-file)
  67   $(call create-info-file)
  68 endef
  69 
  70 # Create a variable dependency file common for all release info files.
  71 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
  72 
  73 SOURCE_REVISION = $(shell \
  74     if [ -f $(SOURCE_REVISION_TRACKER) ] ; then \
  75       $(CAT) $(SOURCE_REVISION_TRACKER) ; \


  36 ################################################################################
  37 
  38 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  39 
  40 # Common way to emit a line into the release or info file
  41 define info-file-item # name value
  42   $(PRINTF) '%s="%s"\n' $1 $2 >> $@
  43 endef
  44 
  45 # Param 1 - The file containing the MODULES list
  46 define create-info-file
  47   $(if $(JDK_ARCH_ABI_PROP_NAME), \
  48     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
  49   $(call info-file-item, "SOURCE", "$(strip $(SOURCE_REVISION))")
  50   $(call info-file-item, "IMPLEMENTOR", "$(COMPANY_NAME)")
  51   $(if $(VENDOR_VERSION_STRING), \
  52     $(call info-file-item, "IMPLEMENTOR_VERSION", "$(VENDOR_VERSION_STRING)"))
  53   $(call info-file-item, "JAVA_VERSION_DATE", "$(VERSION_DATE)")
  54   $(call info-file-item, "OS_NAME", "$(RELEASE_FILE_OS_NAME)")
  55   $(call info-file-item, "OS_ARCH", "$(RELEASE_FILE_OS_ARCH)")
  56   $(call info-file-item, "LIBC", "$(OPENJDK_TARGET_LIBC)")
  57 endef
  58 
  59 # Param 1 - The file containing the MODULES list
  60 define prepare-info-file
  61   $(call LogInfo, Generating $(patsubst $(OUTPUTDIR)/%,%,$@))
  62   $(call MakeDir, $(@D))
  63   $(RM) $@
  64 endef
  65 
  66 define info-file
  67   $(call prepare-info-file)
  68   $(call create-info-file)
  69 endef
  70 
  71 # Create a variable dependency file common for all release info files.
  72 INFO_FILE_VARDEPS := $(call DependOnVariable, create-info-file)
  73 
  74 SOURCE_REVISION = $(shell \
  75     if [ -f $(SOURCE_REVISION_TRACKER) ] ; then \
  76       $(CAT) $(SOURCE_REVISION_TRACKER) ; \
< prev index next >