make-rules/shared-macros.mk
changeset 528 db21abcd4c91
parent 486 00cc0158aa99
child 538 d8d7345db00f
equal deleted inserted replaced
527:e8d15f0b2692 528:db21abcd4c91
    78 LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
    78 LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
    79 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    79 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    80 
    80 
    81 OS_VERSION =		$(shell uname -r)
    81 OS_VERSION =		$(shell uname -r)
    82 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    82 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    83 BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)
    83 BUILD_NUM ?=		0.$(shell expr $(LAST_BUILD_NUM) + 1)
    84 
    84 
    85 #
    85 #
    86 # The Solaris Update number. This will be set by the gatekeepers.
    86 # The Solaris Update number. This will be set by the gatekeepers.
    87 # The value must match the update number of the release.
    87 # The value must match the update number of the release.
    88 #
    88 #
   114 # builds can't be mixed.  Mixing packages from different builds can
   114 # builds can't be mixed.  Mixing packages from different builds can
   115 # easily result in broken global and nonglobal zones.
   115 # easily result in broken global and nonglobal zones.
   116 #
   116 #
   117 NIGHTLYID ?=	$(shell hg tip --template '{rev}\n')
   117 NIGHTLYID ?=	$(shell hg tip --template '{rev}\n')
   118 
   118 
   119 BUILD_VERSION =	 \
   119 BUILD_VERSION ?=	 \
   120     $(OS_VERSION)-$(BUILD_NUM).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID)
   120     $(OS_VERSION)-$(BUILD_NUM).$(UPDATENUM).$(SRUNUM).$(PLATNUM).$(BUILDID).$(NIGHTLYID)
   121 
   121 
   122 COMPILER =		studio
   122 COMPILER =		studio
   123 BITS =			32
   123 BITS =			32
   124 PYTHON_VERSION =	2.6
   124 PYTHON_VERSION =	2.6