aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-10-14 21:27:08 +0000
committerThierry Vignaud <tv@mageia.org>2011-10-14 21:27:08 +0000
commitce4e5cbac23a3df731cc442d23335c451b552c01 (patch)
treef69aa89749b292b4190f45744c142db8b6027628 /Makefile
parent4a83d2e3265a0d39ef2b94f91101bbd46581f06d (diff)
downloadrpmdrake-ce4e5cbac23a3df731cc442d23335c451b552c01.tar
rpmdrake-ce4e5cbac23a3df731cc442d23335c451b552c01.tar.gz
rpmdrake-ce4e5cbac23a3df731cc442d23335c451b552c01.tar.bz2
rpmdrake-ce4e5cbac23a3df731cc442d23335c451b552c01.tar.xz
rpmdrake-ce4e5cbac23a3df731cc442d23335c451b552c01.zip
enable to release from git-svn
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
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!:.*!!') \