diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-23 19:42:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-23 19:42:57 +0000 |
commit | d4a1d4a318a6aa5100b13698da7e3c9f02cd1616 (patch) | |
tree | 8068466ba4f6e1523838ee670e3284ae01592776 /Makefile | |
parent | d5602c2c1d3b99f1ead65859ce55af5489c39449 (diff) | |
download | perl_checker-d4a1d4a318a6aa5100b13698da7e3c9f02cd1616.tar perl_checker-d4a1d4a318a6aa5100b13698da7e3c9f02cd1616.tar.gz perl_checker-d4a1d4a318a6aa5100b13698da7e3c9f02cd1616.tar.bz2 perl_checker-d4a1d4a318a6aa5100b13698da7e3c9f02cd1616.tar.xz perl_checker-d4a1d4a318a6aa5100b13698da7e3c9f02cd1616.zip |
(dist-git) enable to generate tarball from GIT
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,6 +43,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; \ @@ -53,3 +55,6 @@ dist-svn: svn export -q -rBASE . $(NAME)-$(VERSION) tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(PERL_CHECKER_VERSION) rm -rf $(NAME)-$(VERSION) + +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; |