diff --git a/util/version.mk b/util/version.mk index 5547706..5f3fed6 100644 --- a/util/version.mk +++ b/util/version.mk @@ -3,24 +3,14 @@ # Version -VERSION := v1.3.5 +VERSION := v1.3.6 command := $(shell command -v git) ifdef command git := $(shell git rev-parse --is-inside-work-tree 2>&1 >/dev/null) ifeq '$(.SHELLSTATUS)' '0' - tag := $(shell git describe --tags --exact-match 2>/dev/null) - ifeq '$(.SHELLSTATUS)' '0' - ifneq '$(tag)' '$(VERSION)' - sed := $(shell sed -i 's/^VERSION := $(VERSION)/VERSION := $(tag)/g' '$(lastword $(MAKEFILE_LIST))') - endif - else - tag := $(shell git describe --tags --always) - endif - VERSION := $(tag) + VERSION := $(shell git describe --tags --always) endif endif undefine command undefine git -undefine tag -undefine sed