Commit 2b4920d5 authored by Kir Kolyshkin's avatar Kir Kolyshkin

Makefile: only use vN tags for EXTRA_VERSION

In case we'd want to use some extra fancy tag.
Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
parent abbf4cf0
......@@ -17,7 +17,8 @@ PACKAGE=ioping
GIT_VER:=$(shell test -d .git && git describe --tags --match 'v[0-9]*' \
--abbrev=0 | sed 's/v//')
SRC_VER:=$(shell sed -ne 's/\# define VERSION \"\(.*\)\"/\1/p' ioping.c)
EXTRA_VERSION:=$(shell test -d .git && git describe --tags --dirty=+ | sed 's/^v[^-]*//;s/-/./g')
EXTRA_VERSION:=$(shell test -d .git && git describe --tags --match 'v[0-9]*' \
--dirty=+ | sed 's/^v[^-]*//;s/-/./g')
VERSION:=$(SRC_VER)$(EXTRA_VERSION)
DISTDIR=$(PACKAGE)-$(VERSION)
DISTFILES=$(SRCS) $(MANS) $(DOCS) $(SPEC) Makefile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment