Skip to content

Commit

Permalink
update version.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanlanik committed Sep 8, 2022
1 parent 5c17927 commit 2690d6b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions util/version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2690d6b

Please sign in to comment.