diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2021-02-08 09:49:11 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2021-02-08 10:15:54 +0100 |
commit | b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10 (patch) | |
tree | 9cc0eafb7360e5059151128deeb065d96e7df595 | |
parent | e8579ec7485ac310f4f39355310ef93d4bf7ee2d (diff) | |
download | s2u-b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10.tar s2u-b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10.tar.gz s2u-b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10.tar.bz2 s2u-b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10.tar.xz s2u-b1d54bf63533bb29c411bdfcdaa4d9fdc1c66f10.zip |
Fix "dist" in a git world
-rw-r--r-- | Makefile | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -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)" |