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:
parent
ad8d937efc
commit
df561f1563
3
Makefile
3
Makefile
@ -95,7 +95,8 @@ VERSIONFILE=VERSION
|
|||||||
VERSION:=$(shell cat $(VERSIONFILE))
|
VERSION:=$(shell cat $(VERSIONFILE))
|
||||||
|
|
||||||
# the number of changes recorded since last tag in this repo
|
# 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
|
# build flags
|
||||||
WARNINGS:=-W -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-name-shadowing #-fwarn-orphans -fwarn-simple-patterns -fwarn-monomorphism-restriction
|
WARNINGS:=-W -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-name-shadowing #-fwarn-orphans -fwarn-simple-patterns -fwarn-monomorphism-restriction
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user