create tarball with n-v-r instead of n-v
authorKarsten Hopp <karsten@redhat.com>
Fri, 28 Jan 2011 10:38:21 +0000 (11:38 +0100)
committerKarsten Hopp <karsten@redhat.com>
Fri, 28 Jan 2011 10:38:21 +0000 (11:38 +0100)
Makefile

index b3313c1bb9f01ddebd06a3f71de05fc09c935844..1976ce7d6a84c895ee065f6011f9207b8d376a6f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,14 +58,14 @@ check:
 create-archive:
        @rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar*  2>/dev/null
        @make changelog
-       @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > $(NAME)-$(VERSION).tar
+       @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > $(NAME)-$(VERSION)-$(RELEASE).tar
        @mkdir $(NAME)-$(VERSION)
        @cp ChangeLog $(NAME)-$(VERSION)/
-       @tar --append -f $(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
-       @bzip2 -f $(NAME)-$(VERSION).tar
+       @tar --append -f $(NAME)-$(VERSION)-$(RELEASE).tar $(NAME)-$(VERSION)
+       @bzip2 -f $(NAME)-$(VERSION)-$(RELEASE).tar
        @rm -rf $(NAME)-$(VERSION)
        @echo ""
-       @echo "The final archive is in $(NAME)-$(VERSION).tar.bz2"
+       @echo "The final archive is in $(NAME)-$(VERSION)-$(RELEASE).tar.bz2"
 
 archive: check clean commit tag create-archive