From 46636537c74e5bf216fa8b844f624f96fd355b31 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 14 Sep 2013 14:36:07 +0200 Subject: drop dist-svn & related rules --- Makefile | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/Makefile b/Makefile index 639ae25..ba4bc5a 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,6 @@ PACKAGE=bootloader-utils VERSION=1.16 TAG = $(VERSION) -SVN_URL := $(shell svn info | sed -n '/^URL[^:]*: *\(.*\)/s//\1/p') -SVNROOT := $(shell dirname $(SVN_URL)) -SVNCOPY = $(SVN_URL) - all: check check: @@ -52,35 +48,11 @@ localcopy: # rules to build a distributable dist dist: cleandist - @if [ -e ".svn" ]; then \ - $(MAKE) dist-svn; \ - elif [ -e ".git" ]; then \ - $(MAKE) dist-git; \ - else \ - echo "Unknown SCM (not SVN nor GIT)";\ - exit 1; \ - fi; - $(info $(PACKAGE)-$(VERSION).tar.xz is ready) - -dist-git: @git archive --prefix=$(PACKAGE)-$(VERSION)/ HEAD | xz >../$(PACKAGE)-$(VERSION).tar.xz; - -dist-svn: - svn export $(SVNROOT)/releases/$(TAG) $(PACKAGE)-$(VERSION) - tar cvfa $(PACKAGE)-$(VERSION).tar.xz $(PACKAGE)-$(VERSION) - rm -rf $(PACKAGE)-$(VERSION) + $(info $(PACKAGE)-$(VERSION).tar.xz is ready) svntag: -svn mkdir $(SVN_BASE)/releases/$(TAG) -m "created directory $(TAG)" svn copy $(SVNCOPY) $(SVNROOT)/releases/$(TAG) -m "Tagged as $(TAG)" -localchangelog: -#svn2cl is available in our contrib. - svn cat `dirname $(SVNROOT)`/common/username.xml > $$TMPDIR/username.xml; \ - svn2cl --authors $$TMPDIR/username.xml --accum; \ - rm -f ChangeLog.bak $$TMPDIR/username.xml - -changelog: localchangelog - svn commit -m "Generated by svn2cl the `date '+%d_%b'`" ChangeLog - # Makefile ends here -- cgit v1.2.1