[redhat-rpm-config: 158/215] Tarball creation tweaks - add ChangeLog to tarballs - make tagging non-interactive - silence the tar

Panu Matilainen pmatilai at fedoraproject.org
Wed Apr 2 10:31:41 UTC 2014


commit d53f48cc840cff16719765d7126e7b87db7bd948
Author: Panu Matilainen <pmatilai at redhat.com>
Date:   Tue Feb 2 11:24:04 2010 +0200

    Tarball creation tweaks
    - add ChangeLog to tarballs
    - make tagging non-interactive
    - silence the tarball generation commands

 Makefile |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
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


More information about the scm-commits mailing list