tools: more PATCHLEVEL/git-describe fixes

This commit is contained in:
Simon Michael 2015-09-03 12:24:35 -07:00
parent 2ec55117c0
commit e1f5023e30

View File

@ -148,7 +148,9 @@ VERSIONFILE=.version
VERSION:=$(shell cat $(VERSIONFILE))
# the number of commits since the last tag
PATCHLEVEL:=$(shell git describe --tags | awk -F - '{print $$2}')
#DESCRIBE:=$(shell git describe --tags --match 'hledger-[0-9]*' --dirty )
PATCHLEVEL:=$(shell git describe --tags --match 'hledger-[0-9]*' --long | awk -F- '{print $$3}')
#PATCHLEVEL:=$(shell git describe --tags --match 'hledger-web-[0-9]*' --long | awk -F- '{print $$4}')
# the number of commits since the last_release tag
#PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)