summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 06:48:51 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 06:48:51 +0000
commitb2197aa502f269fda067df51dafea1157c1e4fc9 (patch)
tree7919e690243fa8dd52622e56a4d84d446ae80ffa /Makefile
parent8feef21b53796af3c30d1949cb345f21fb61535a (diff)
downloadcontrol-center-b2197aa502f269fda067df51dafea1157c1e4fc9.tar
control-center-b2197aa502f269fda067df51dafea1157c1e4fc9.tar.gz
control-center-b2197aa502f269fda067df51dafea1157c1e4fc9.tar.bz2
control-center-b2197aa502f269fda067df51dafea1157c1e4fc9.tar.xz
control-center-b2197aa502f269fda067df51dafea1157c1e4fc9.zip
(dist-svn) split it out of dist
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 22256c43..0a101161 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,16 @@ install: all
dis: dist
dist: clean
+ rm -rf ../$(NAME)-$(VERSION).tar*
+ @if [ -e ".svn" ]; then \
+ $(MAKE) dist-svn; \
+ 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 '*.p[lm]' -o -name control-center | xargs perl -pi -e 's/\s*use\s+(diagnostics|vars|strict).*//g'