Versioning

This commit is contained in:
Gitea
2019-02-05 09:41:32 +01:00
parent 0838094983
commit 3b3e696870
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -30,8 +30,9 @@ else
else
VERSION ?= master
endif
GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
endif
# GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
GITEA_VERSION := wse:$(shell git describe --tags --always | sed 's/^v//' | cut -d"-" -f4)
endif
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"