summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 06:48:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 06:48:58 +0000
commit212b041aa90975f61f2701d7666a9f3d6fef7bb5 (patch)
tree46c8e54c5a76302a660739a615c1db1348518dcb /Makefile
parentd389fcb8b698b7f1834e94845f546e374ee711bf (diff)
downloadcontrol-center-212b041aa90975f61f2701d7666a9f3d6fef7bb5.tar
control-center-212b041aa90975f61f2701d7666a9f3d6fef7bb5.tar.gz
control-center-212b041aa90975f61f2701d7666a9f3d6fef7bb5.tar.bz2
control-center-212b041aa90975f61f2701d7666a9f3d6fef7bb5.tar.xz
control-center-212b041aa90975f61f2701d7666a9f3d6fef7bb5.zip
(dist-git) add support for git
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