summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-20 23:57:56 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-20 23:57:56 +0000
commit2aee6457401179160acbb97522506cb3b82e439c (patch)
treeafc519e1630f5481e79065878b4233b0016c29a7
parentd0a225f5e1b13513db57d8d84ab55fa73437ad30 (diff)
downloaddrakguard-2aee6457401179160acbb97522506cb3b82e439c.tar
drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.gz
drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.bz2
drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.xz
drakguard-2aee6457401179160acbb97522506cb3b82e439c.zip
enable to release from git-svn
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2b6452f..96340f8 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,28 @@ install:
install -m644 $(wildcard data/icons/*.png) $(DESTDIR)$(iconsdir)
make -C po install
-dis:
+dist-svn:
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
svn export -q -rBASE . $(NAME)-$(VERSION)
find $(NAME)-$(VERSION) -name .svnignore |xargs rm -rf
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;
+
+dist:
+ 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)
+
changelog:
svn2cl --authors ../common/username.xml --accum
rm -f ChangeLog.bak