make-rules/shared-macros.mk
changeset 93 b579c7b1bb44
parent 85 8098282b503b
child 94 e2364cad23ff
--- a/make-rules/shared-macros.mk	Wed Feb 16 15:23:32 2011 -0800
+++ b/make-rules/shared-macros.mk	Thu Feb 17 13:44:40 2011 -0800
@@ -30,7 +30,7 @@
 ROOT =			/
 
 # get the most recent build number from the last mercurial tag
-LAST_HG_TAG =	$(shell hg tags -q | head -2 | tail -1)
+LAST_HG_TAG =	$(shell hg tags -q | grep build- | head -1)
 LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%)
 
 OS_VERSION =		$(shell uname -r)