Tarball creation tweaks

- add ChangeLog to tarballs
- make tagging non-interactive
- silence the tarball generation commands
This commit is contained in:
Panu Matilainen 2010-02-02 11:24:04 +02:00
parent c73da1f920
commit d53f48cc84

View File

@ -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