simplify PATCHLEVEL assignment

This commit is contained in:
Simon Michael 2013-04-08 11:31:24 -07:00
parent 52e5003866
commit 91c622ab39

View File

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