tools: calculate patch level using git describe now.

Patch level is now the number of commits since the last_release tag,
avoiding interference from misc other tags.
This commit is contained in:
Simon Michael 2013-04-05 20:45:22 -07:00
parent ad8d937efc
commit df561f1563

View File

@ -95,7 +95,8 @@ VERSIONFILE=VERSION
VERSION:=$(shell cat $(VERSIONFILE))
# the number of changes recorded since last tag in this repo
PATCHLEVEL:=$(shell expr `darcs changes --count --from-tag=\\\\\.` - 1)
#PATCHLEVEL:=$(shell expr `git describe --long | awk -F - '{print $$2}' `)
PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)
# build flags
WARNINGS:=-W -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-name-shadowing #-fwarn-orphans -fwarn-simple-patterns -fwarn-monomorphism-restriction