diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-08-31 11:46:38 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-08-31 12:12:29 +0200 |
commit | e3156ca6a1b9cdd4ce16007c461511f80f7a1daa (patch) | |
tree | 02644c3b535591f23b36320bcd42f750fdb07934 /Makefile | |
parent | 52ea7ab44ac295790d873516ada3b835882507fc (diff) | |
download | setup-e3156ca6a1b9cdd4ce16007c461511f80f7a1daa.tar setup-e3156ca6a1b9cdd4ce16007c461511f80f7a1daa.tar.gz setup-e3156ca6a1b9cdd4ce16007c461511f80f7a1daa.tar.bz2 setup-e3156ca6a1b9cdd4ce16007c461511f80f7a1daa.tar.xz setup-e3156ca6a1b9cdd4ce16007c461511f80f7a1daa.zip |
use git for generating archive
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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" |