File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222endif
2323
2424SNAPSHOT := $(shell git rev-parse --short HEAD)
25- PREVIOUS_TAG := $(shell git tag --sort=v:refname --no-contains HEAD | grep -E "[0-9]+\.[0-9]+\.[0-9]+$$" | tail -n1)
26- CURRENT_TAG := $(shell git tag --sort=v:refname --points-at HEAD | grep -E "v[0-9]+\.[0-9]+\.[0-9]+$$" | tail -n1)
25+ PREVIOUS_TAG := $(shell git tag --sort=v:refname --no-contains HEAD | grep -E "[0-9]+\.[0-9]+\.[0-9]+$$" | grep -v 'version' | tail -n1)
26+ CURRENT_TAG := $(shell git tag --sort=v:refname --points-at HEAD | grep -E "v[0-9]+\.[0-9]+\.[0-9]+$$" | grep -v 'version' | tail -n1)
2727# Version will be the tag pointing to the current commit, or the previous version tag if there is no such tag
2828VERSION ?= $(if $(CURRENT_TAG ) ,$(CURRENT_TAG ) ,$(PREVIOUS_TAG ) -SNAPSHOT-$(SNAPSHOT ) )
2929
You can’t perform that action at this time.
0 commit comments