summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Duret <yduret@mandriva.com>2002-12-02 09:49:41 +0000
committerYves Duret <yduret@mandriva.com>2002-12-02 09:49:41 +0000
commitc12122ad04c30c7be3d8dbd726662d08e0c4d39e (patch)
tree5fce21e64d1f1b8e1add853f1ffa379f5c25a109
parenta59e90f2e27bff8592c68077227bad8cb9569bff (diff)
downloadrootfiles-c12122ad04c30c7be3d8dbd726662d08e0c4d39e.tar
rootfiles-c12122ad04c30c7be3d8dbd726662d08e0c4d39e.tar.gz
rootfiles-c12122ad04c30c7be3d8dbd726662d08e0c4d39e.tar.bz2
rootfiles-c12122ad04c30c7be3d8dbd726662d08e0c4d39e.tar.xz
rootfiles-c12122ad04c30c7be3d8dbd726662d08e0c4d39e.zip
- better version detection using rpm -q instead of olf awk stuff.
- added changelog rule using common tools.
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e753444..9261751 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
NAME = rootfiles
-VERSION = $(shell awk '/Version:[ ]*(.*)/ { print $$2 }' $(NAME).spec)
+VERSION = $(shell rpm -q --qf %{VERSION}-%{RELEASE} --specfile $(NAME).spec)
RPM = $(HOME)/rpm/
DOTFILES = Xdefaults bash_logout bash_profile bashrc cshrc tcshrc vimrc
@@ -31,6 +31,11 @@ rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
clean:
rm -f *~
+changelog: ../common/username
+ cvs2cl -U ../common/username -I ChangeLog
+ rm -f ChangeLog.bak
+ cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
+
toto:
@echo $(NAME)
@echo $(VERSION)