diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-07 14:35:59 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-07 14:35:59 +0200 |
commit | 64ed54b54f8efe6a0fd350cfc43970eba90a4a57 (patch) | |
tree | 12c31dfc5829d7f0d9e140c8a4e961f014940439 | |
parent | 98a61bee85af20f2c6c7bb0e144b9d0a06697f37 (diff) |
Fix version / sub-version retrieval.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ SYNCTHING_INOTIFY_VERSION=master # Retrieve git tag/commit to set sub-version string ifeq ($(origin SUB_VERSION), undefined) - SUB_VERSION := $(shell git describe --tags 2>/dev/null | sed 's/^v//') + SUB_VERSION := $(shell git describe --exact-match --tags 2>/dev/null | sed 's/^v//') ifneq ($(SUB_VERSION), ) VERSION := $(firstword $(subst -, ,$(SUB_VERSION))) SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION))) |