aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile23
1 files 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)"