Commit f807e44f authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: use git-describe to retrieve version

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent ffa5f7e4
...@@ -11,7 +11,7 @@ MANS=ioping.1 ...@@ -11,7 +11,7 @@ MANS=ioping.1
SPEC=ioping.spec SPEC=ioping.spec
PACKAGE=ioping PACKAGE=ioping
VERSION=$(shell awk '/^Version:/{print $$2}' $(SPEC)) VERSION=$(shell test -d .git && git describe --tags --dirty=+ || awk '/^Version:/{print $$2}' $(SPEC))
DISTDIR=$(PACKAGE)-$(VERSION) DISTDIR=$(PACKAGE)-$(VERSION)
DISTFILES=$(SRCS) $(MANS) $(SPEC) Makefile DISTFILES=$(SRCS) $(MANS) $(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