summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 16:30:26 +0000
committerDerek Jennings <djennings@mageia.org>2013-08-27 12:13:23 +0100
commitd88c3583d29e8e12be9d53c72ea4cd32afe27262 (patch)
tree4205e2746841d36c6c67d4313f06a20fdfefc35b
parent52b656fdc12d15c13269037b5912c14defc754cb (diff)
downloaddrakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar
drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.gz
drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.bz2
drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.tar.xz
drakwizard-d88c3583d29e8e12be9d53c72ea4cd32afe27262.zip
add dist-git support
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e33a470e..363744ff 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ; \