aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-11-14 15:16:29 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-11-14 15:16:29 +0000
commit1b472e7823285a43ce45f0273dd127b043d1e966 (patch)
treea1e889899ba73ab6f371acfd8e04023cf23d0c0c
parent41c152d836f302108c78908454c5966e7462a08a (diff)
downloadmsec-1b472e7823285a43ce45f0273dd127b043d1e966.tar
msec-1b472e7823285a43ce45f0273dd127b043d1e966.tar.gz
msec-1b472e7823285a43ce45f0273dd127b043d1e966.tar.bz2
msec-1b472e7823285a43ce45f0273dd127b043d1e966.tar.xz
msec-1b472e7823285a43ce45f0273dd127b043d1e966.zip
fix version gathering
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d80940b..a8321c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PACKAGE = msec
-VERSION:=$(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec)
-RELEASE:=$(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec)
+VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec|head -1)
+RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec|head -1)
TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
all: promisc_check msec_find python