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