mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 19:41:47 +03:00
tools: better git describe command to set PATCHLEVEL
This commit is contained in:
parent
821f1b7120
commit
2ec55117c0
2
Makefile
2
Makefile
@ -148,7 +148,7 @@ VERSIONFILE=.version
|
||||
VERSION:=$(shell cat $(VERSIONFILE))
|
||||
|
||||
# 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
|
||||
#PATCHLEVEL:=$(shell git rev-list last_release..HEAD | wc -l)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user