diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-10 06:34:14 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-10 06:34:14 +0300 |
commit | 789cbeca36efcd135ec9ccb134d91d9487eeb034 (patch) | |
tree | de5a51c6b5310e1d0e214bdc696fc931c99cc43a /Makefile.internal.mk | |
parent | a7054c1ef71d0aad7c14d05bff3693c3485a6271 (diff) |
Add changelog generation script
Changelog: other
Diffstat (limited to 'Makefile.internal.mk')
-rw-r--r-- | Makefile.internal.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.internal.mk b/Makefile.internal.mk index 54e7f7da..5a3c9743 100644 --- a/Makefile.internal.mk +++ b/Makefile.internal.mk @@ -1,7 +1,8 @@ REVISION := $(shell git rev-parse --short HEAD || echo unknown) LAST_TAG := $(shell git describe --tags --abbrev=0) COMMITS := $(shell echo `git log --oneline $(LAST_TAG)..HEAD | wc -l`) -VERSION := $(shell cat VERSION) +export VERSION = $(shell cat VERSION) +export BRANCH = $(shell git rev-parse --abbrev-ref HEAD) ifneq (v$(VERSION),$(LAST_TAG)) VERSION := $(shell echo $(VERSION)~beta.$(COMMITS).g$(REVISION)) |