summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-08-19 04:51:44 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-08-19 04:51:44 -0300
commitc1ab4c5c1747f9234ea9582f08ebce7ed68b1945 (patch)
tree33a75a74af70b08ee3ac32c70a0786c5c17151cc /Makefile
parente0433c81cd8df073c9e311dace4a0dcf2486331e (diff)
downloadpython-ethtool-c1ab4c5c1747f9234ea9582f08ebce7ed68b1945.tar.gz
python-ethtool-c1ab4c5c1747f9234ea9582f08ebce7ed68b1945.tar.xz
python-ethtool-c1ab4c5c1747f9234ea9582f08ebce7ed68b1945.zip
Makefile: fixup version extraction
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 605eab3..ce181ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PACKAGE := python-ethtool
-VERSION := $(shell rpm -q --qf '%{VERSION}' --specfile rpm/SPECS/$(PACKAGE).spec)
+VERSION := $(shell rpm -q --qf '%{VERSION} ' --specfile rpm/SPECS/$(PACKAGE).spec | cut -d' ' -f1)
rpmdirs:
@[ -d rpm/BUILD ] || mkdir rpm/BUILD