aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-04-10 15:58:29 +0000
committerFlorent Villard <warly@mandriva.com>2006-04-10 15:58:29 +0000
commit2b52430853c2c51a17bc8989643e047f0f0c729d (patch)
tree4488ca6bad7ff6ddbc75338b301272868dafad1c
parent748d494964b58316510e590f7150fd9e71dd92de (diff)
downloadbootsplash-2b52430853c2c51a17bc8989643e047f0f0c729d.tar
bootsplash-2b52430853c2c51a17bc8989643e047f0f0c729d.tar.gz
bootsplash-2b52430853c2c51a17bc8989643e047f0f0c729d.tar.bz2
bootsplash-2b52430853c2c51a17bc8989643e047f0f0c729d.tar.xz
bootsplash-2b52430853c2c51a17bc8989643e047f0f0c729d.zip
change version and release method to use rpm instead of shell to interpret mkrel macro
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 98983dc..2c2b0f2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
NAME=bootsplash
-VERSION := $(shell sed -n 's/%define version //p' < $(NAME).spec)
-RELEASE := $(shell sed -n 's/%define release //p' < $(NAME).spec)
+VERSION := $(shell rpm -q --qf '%{version}\n' --specfile $(NAME).spec | head -1)
+RELEASE := $(shell rpm -q --qf '%{release}\n' --specfile $(NAME).spec | head -1)
RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
SUBDIRS=scripts fb fbmngplay fbtruetype splash po
@@ -36,6 +36,7 @@ changelog: ../common/username
)
cvstag:
+ echo $(RELTAG)
cvs commit
cvs tag $(RELTAG)