1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00

build: switch to semvar compliant version tags

Fixes #2960
This commit is contained in:
Nick Craig-Wood 2019-02-09 18:05:52 +00:00
parent 43bc381e90
commit d8e5b19ed4

View File

@ -11,7 +11,7 @@ ifeq ($(subst HEAD,,$(subst master,,$(BRANCH))),)
BRANCH_PATH := BRANCH_PATH :=
endif endif
TAG := $(shell echo $$(git describe --abbrev=8 --tags | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/'))$(TAG_BRANCH) TAG := $(shell echo $$(git describe --abbrev=8 --tags | sed 's/-\([0-9]\)-/-00\1-/; s/-\([0-9][0-9]\)-/-0\1-/'))$(TAG_BRANCH)
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f", $$_)') NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = sprintf("v%.2f.0", $$_)')
ifneq ($(TAG),$(LAST_TAG)) ifneq ($(TAG),$(LAST_TAG))
TAG := $(TAG)-beta TAG := $(TAG)-beta
endif endif