From e3156ca6a1b9cdd4ce16007c461511f80f7a1daa Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 31 Aug 2016 11:46:38 +0200 Subject: use git for generating archive --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0fe5bdd..db0ab0a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PACKAGE = setup +NAME = setup VERSION = 2.7.21 SVNPATH = svn+ssh://svn.mageia.org/svn/soft/$(PACKAGE) @@ -32,9 +32,7 @@ install: echo -n '' > $(DESTDIR)/var/log/lastlog echo -n '' > $(DESTDIR)/etc/mtab -tar: - tar cvjf $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION) - rm -rf $(PACKAGE)-$(VERSION) - -dist: tar +dist: + @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz + @echo "The archive is at $(NAME)-$(VERSION).tar.xz" -- cgit v1.2.1