diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-24 06:48:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-24 06:48:58 +0000 |
commit | 212b041aa90975f61f2701d7666a9f3d6fef7bb5 (patch) | |
tree | 46c8e54c5a76302a660739a615c1db1348518dcb /Makefile | |
parent | d389fcb8b698b7f1834e94845f546e374ee711bf (diff) | |
download | control-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-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |