diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ NAME = rootfiles -VERSION = 7.0 -DOTFILES = Xdefaults bash_logout bash_profile bashrc cshrc kderc tcshrc vimrc zshrc kde netscape +VERSION=$(shell awk '/define version/ { print $$3 }' $(NAME).spec) +DOTFILES = Xdefaults bash_logout bash_profile bashrc cshrc kderc tcshrc vimrc kde netscape FILES = Desktop all: @@ -13,11 +13,11 @@ install: install -d -m700 $(RPM_BUILD_ROOT)/root/tmp dis: + cvs commit rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* mkdir -p $(NAME)-$(VERSION) find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/ find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf - perl -p -i -e 's|^%define version.*|%define version $(VERSION)|' $(NAME).spec tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION) bzip2 -9f ../$(NAME)-$(VERSION).tar rm -rf $(NAME)-$(VERSION) |