Update constant version. Add transitional support for patch version

This commit is contained in:
Jguer 2018-10-08 18:46:51 +01:00
parent e316c979cc
commit 621b8aac43
No known key found for this signature in database
GPG key ID: 09754DBECF21746F
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,8 @@ DESTDIR :=
MAJORVERSION := 8 MAJORVERSION := 8
MINORVERSION ?= $(shell git rev-list --count master) MINORVERSION ?= $(shell git rev-list --count master)
VERSION ?= ${MAJORVERSION}.${MINORVERSION} PATCHVERSION := 0
VERSION ?= ${MAJORVERSION}.${MINORVERSION}.${PATCHVERSION}
LDFLAGS := -ldflags '-s -w -X main.version=${VERSION}' LDFLAGS := -ldflags '-s -w -X main.version=${VERSION}'
ARCH := $(shell uname -m) ARCH := $(shell uname -m)

View file

@ -78,7 +78,7 @@ type Configuration struct {
UseAsk bool `json:"useask"` UseAsk bool `json:"useask"`
} }
var version = "8.1139" var version = "8.1157"
// configFileName holds the name of the config file. // configFileName holds the name of the config file.
const configFileName string = "config.json" const configFileName string = "config.json"