aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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)