aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2005-12-16 14:25:31 +0000
committerflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2005-12-16 14:25:31 +0000
commitf44022c2ad1a1e9c4b066bc765e09dc327f1197f (patch)
treea4b29bc3b18a0150f9f7af58ecf7478a5983bd14 /Makefile
parent109aac9324de75dc874a4ee8817108a7e149835b (diff)
downloads2u-f44022c2ad1a1e9c4b066bc765e09dc327f1197f.tar
s2u-f44022c2ad1a1e9c4b066bc765e09dc327f1197f.tar.gz
s2u-f44022c2ad1a1e9c4b066bc765e09dc327f1197f.tar.bz2
s2u-f44022c2ad1a1e9c4b066bc765e09dc327f1197f.tar.xz
s2u-f44022c2ad1a1e9c4b066bc765e09dc327f1197f.zip
fixed version/release parsing
git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179818 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5002c69..0c09f53 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@
#############################################################################
PACKAGE=s2u
-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 -- '-.' '__')
FILES = Makefile README hostname-post s2u.c s2u.sh s2u.spec \