diff options
author | Frederic Lepied <flepied@mandriva.com> | 2003-01-20 13:06:53 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2003-01-20 13:06:53 +0000 |
commit | e005d1ca801ececc0c25d2a072913f9b75138845 (patch) | |
tree | b3af39a1698d57c7987dcb72b66b4145bbfe7fd2 /Makefile | |
parent | 3e278cddd2b6d12d6cb4bc0c0f71d422751e2bb6 (diff) | |
download | msec-e005d1ca801ececc0c25d2a072913f9b75138845.tar msec-e005d1ca801ececc0c25d2a072913f9b75138845.tar.gz msec-e005d1ca801ececc0c25d2a072913f9b75138845.tar.bz2 msec-e005d1ca801ececc0c25d2a072913f9b75138845.tar.xz msec-e005d1ca801ececc0c25d2a072913f9b75138845.zip |
use rpm to find version and release
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ PACKAGE = msec -VERSION := $(shell grep 'Version:' $(PACKAGE).spec| cut -f 2) -RELEASE := $(shell grep 'Release:' $(PACKAGE).spec| cut -f 2) +VERSION:=$(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec) +RELEASE:=$(shell rpm -q --qf %{RELEASE} --specfile $(PACKAGE).spec) TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') all: promisc_check msec_find python |