From 2aee6457401179160acbb97522506cb3b82e439c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 20 Apr 2013 23:57:56 +0000 Subject: enable to release from git-svn --- Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2b6452f..96340f8 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,28 @@ install: install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir) make -C po install -dis: +dist-svn: rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* svn export -q -rBASE . $(NAME)-$(VERSION) find $(NAME)-$(VERSION) -name .svnignore |xargs rm -rf tar cfa ../$(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; + +dist: + rm -rf ../$(NAME)-$(VERSION).tar* + @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 $(NAME)-$(VERSION).tar.xz is ready) + changelog: svn2cl --authors ../common/username.xml --accum rm -f ChangeLog.bak -- cgit v1.2.1