diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-04-20 23:57:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-04-20 23:57:56 +0000 |
commit | 2aee6457401179160acbb97522506cb3b82e439c (patch) | |
tree | afc519e1630f5481e79065878b4233b0016c29a7 /Makefile | |
parent | d0a225f5e1b13513db57d8d84ab55fa73437ad30 (diff) | |
download | drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.gz drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.bz2 drakguard-2aee6457401179160acbb97522506cb3b82e439c.tar.xz drakguard-2aee6457401179160acbb97522506cb3b82e439c.zip |
enable to release from git-svn
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |