diff options
author | Florent Villard <warly@mandriva.com> | 2006-04-10 15:58:29 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-04-10 15:58:29 +0000 |
commit | 2b52430853c2c51a17bc8989643e047f0f0c729d (patch) | |
tree | 4488ca6bad7ff6ddbc75338b301272868dafad1c /Makefile | |
parent | 748d494964b58316510e590f7150fd9e71dd92de (diff) | |
download | bootsplash-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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |