From c12122ad04c30c7be3d8dbd726662d08e0c4d39e Mon Sep 17 00:00:00 2001 From: Yves Duret Date: Mon, 2 Dec 2002 09:49:41 +0000 Subject: - better version detection using rpm -q instead of olf awk stuff. - added changelog rule using common tools. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.1