diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-10-17 16:30:26 +0000 |
---|---|---|
committer | Derek Jennings <djennings@mageia.org> | 2013-08-27 12:13:23 +0100 |
commit | d88c3583d29e8e12be9d53c72ea4cd32afe27262 (patch) | |
tree | 4205e2746841d36c6c67d4313f06a20fdfefc35b /Makefile | |
parent | 52b656fdc12d15c13269037b5912c14defc754cb (diff) | |
download | drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.gz drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.bz2 drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.xz drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.zip |
add dist-git support
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -63,7 +63,16 @@ clean: dist: clean find . -maxdepth 2 -name '*.p[lm]' -print0 | xargs -t -0 -n1 perl -cw \ -I/usr/lib/libDrakX > /dev/null 2>&1 - $(MAKE) dist-svn + 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) dist-svn: rm -rf $(NAME)-$(VERSION) @@ -71,6 +80,9 @@ dist-svn: tar cfY ../$(NAME)-$(VERSION).tar.lzma $(NAME)-$(VERSION) rm -rf $(NAME)-$(VERSION) +dist-git: + @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz; + log: changelog changelog: ( svn2cl --authors=../../common/username --accum ; \ |