summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 1 insertions, 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