tools: better git describe command to set PATCHLEVEL

This commit is contained in:
Simon Michael 2015-09-03 12:13:37 -07:00
parent 821f1b7120
commit 2ec55117c0

View File

@ -148,7 +148,7 @@ VERSIONFILE=.version
VERSION:=$(shell cat $(VERSIONFILE)) VERSION:=$(shell cat $(VERSIONFILE))
# the number of commits since the last tag # the number of commits since the last tag
PATCHLEVEL:=$(shell git describe --long | awk -F - '{print $$2}') PATCHLEVEL:=$(shell git describe --tags | awk -F - '{print $$2}')
# the number of commits since the last_release tag # the number of commits since the last_release tag
#PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l) #PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)