From ce4e5cbac23a3df731cc442d23335c451b552c01 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Oct 2011 21:27:08 +0000 Subject: enable to release from git-svn --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index 21903a21..ef0ce42e 100644 --- a/Makefile +++ b/Makefile @@ -47,12 +47,27 @@ clean: dis: dist 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; \ + fi; + $(info $(NAME)-$(VERSION).tar.xz is ready) + +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; + gui.lst: LC_COLLATE=C; ( echo -e "cedega-mandriva\npicasa\nVariCAD_2009-en\nVariCAD_View_2009-en\nVMware-Player" ; \ urpmf "/(opt/kde[43]|usr)/share/((applnk|applications(|/kde)|apps/kicker/applets)/|kde4/services/plasma-applet).*.desktop" |sed -e 's!:.*!!') \ -- cgit v1.2.1