From d53f48cc840cff16719765d7126e7b87db7bd948 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Feb 02 2010 09:24:04 +0000 Subject: Tarball creation tweaks - add ChangeLog to tarballs - make tagging non-interactive - silence the tarball generation commands --- diff --git a/Makefile b/Makefile index f212d9a..8b94b5d 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,13 @@ install: rm -f $(DESTDIR)/usr/lib/rpm/redhat/Makefile tag-archive: - git tag -a $(CVSTAG) + @git tag -a $(CVSTAG) -m "$(NAME)-$(VERSION) release" create-archive: - git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | bzip2 -9v > $(NAME)-$(VERSION).tar.bz2 - @echo "The final archive is in $(NAME)-$(VERSION).tar.bz2" + @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | tar xf - + @git log > $(NAME)-$(VERSION)/ChangeLog + @tar cjf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) + @rm -rf $(NAME)-$(VERSION) + @echo "Created $(NAME)-$(VERSION).tar.bz2" archive: tag-archive create-archive -dist: create-archive