summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bf850e67..93cf2455 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,8 @@ dist: clean
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; \
@@ -61,6 +63,9 @@ dist-svn:
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;
+
changelog:
svn2cl --authors ../common/username.xml --accum
rm -f ChangeLog.bak