From b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 8 Feb 2021 09:49:11 +0100 Subject: Fix "dist" in a git world --- Makefile | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 9061b21..e88b207 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,6 @@ PACKAGE=s2u VERSION := 0.9.2 -SVNROOT = svn+ssh://svn.mandriva.com/svn/soft/$(PACKAGE) FILES = Makefile README hostname-post s2u.c s2u.sh \ @@ -43,28 +42,10 @@ install: install -d $(DESTDIR)/etc/dbus-1/system.d install -m 644 s2u.conf $(DESTDIR)/etc/dbus-1/system.d -localdist: cleandist dir localcopy tar - -cleandist: - rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 - -dir: - mkdir $(PACKAGE)-$(VERSION) - -localcopy: - tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION) - -tar: - tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION) - bzip2 -9vf $(PACKAGE)-$(VERSION).tar - rm -rf $(PACKAGE)-$(VERSION) - # rules to build a distributable rpm -dist: cleandist tag export tar - -export: - svn export $(SVNROOT)/tags/$(TAG) $(PACKAGE)-$(VERSION) +dist: tag + git archive --prefix $(PACKAGE)-$(VERSION)/ HEAD | xz -9 > $(PACKAGE)-$(VERSION).tar.xz tag: git tag "$(VERSION)" -- cgit v1.2.1