summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-25 18:29:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-25 18:29:56 +0000
commit0cb0d8e10cbcb9b3461e4d8f13b10a0502064433 (patch)
tree2885eea56ea9b6176b6dc64943daa22af2e369e3
parentf82c3bc5a5add35e8c7ac61f43c030d76585296e (diff)
downloaddrakx-0cb0d8e10cbcb9b3461e4d8f13b10a0502064433.tar
drakx-0cb0d8e10cbcb9b3461e4d8f13b10a0502064433.tar.gz
drakx-0cb0d8e10cbcb9b3461e4d8f13b10a0502064433.tar.bz2
drakx-0cb0d8e10cbcb9b3461e4d8f13b10a0502064433.tar.xz
drakx-0cb0d8e10cbcb9b3461e4d8f13b10a0502064433.zip
(dist-git) introduce & use it
-rw-r--r--perl-install/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 6ea394882..ab86ab977 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -68,8 +68,20 @@ dist-svn: localcopy
tar cfa $(PACKAGE)-$(PKGVERSION).tar.xz $(PACKAGE)-$(PKGVERSION)
rm -rf $(PACKAGE)-$(PKGVERSION)
+dist-git:
+ @cd ..; git archive --prefix=$(PACKAGE)-$(PKGVERSION)/ HEAD perl-install/{[^i]*,int*} $(OTHERS) kernel/list_modules.pm Makefile.config | xz >$(PACKAGE)-$(PKGVERSION).tar.xz;
+
tar:
- @make dist-svn
+ rm -rf $(PACKAGE)*.tar* $(PACKAGE)-$(PKGVERSION)
+ 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 $(PACKAGE)-$(PKGVERSION).tar.xz is ready)
# rules to build a distributable rpm