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
commitb08cea3b47badae4eb97e33e9892547a905003fe (patch)
tree2885eea56ea9b6176b6dc64943daa22af2e369e3
parent59ef3ff6335ea6cee598331128b14dfdf05d8d79 (diff)
downloaddrakx-backup-do-not-use-b08cea3b47badae4eb97e33e9892547a905003fe.tar
drakx-backup-do-not-use-b08cea3b47badae4eb97e33e9892547a905003fe.tar.gz
drakx-backup-do-not-use-b08cea3b47badae4eb97e33e9892547a905003fe.tar.bz2
drakx-backup-do-not-use-b08cea3b47badae4eb97e33e9892547a905003fe.tar.xz
drakx-backup-do-not-use-b08cea3b47badae4eb97e33e9892547a905003fe.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