make-rules/shared-macros.mk
changeset 93 b579c7b1bb44
parent 85 8098282b503b
child 94 e2364cad23ff
equal deleted inserted replaced
92:b4be50cb7106 93:b579c7b1bb44
    28 
    28 
    29 IS_GLOBAL_ZONE =	$(shell /usr/sbin/zoneadm list | grep -c global)
    29 IS_GLOBAL_ZONE =	$(shell /usr/sbin/zoneadm list | grep -c global)
    30 ROOT =			/
    30 ROOT =			/
    31 
    31 
    32 # get the most recent build number from the last mercurial tag
    32 # get the most recent build number from the last mercurial tag
    33 LAST_HG_TAG =	$(shell hg tags -q | head -2 | tail -1)
    33 LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
    34 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    34 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
    35 
    35 
    36 OS_VERSION =		$(shell uname -r)
    36 OS_VERSION =		$(shell uname -r)
    37 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    37 SOLARIS_VERSION =	$(OS_VERSION:5.%=2.%)
    38 BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)
    38 BUILD_NUM =		0.$(shell expr $(LAST_BUILD_NUM) + 1)