summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-23 19:05:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-23 19:05:55 +0000
commitd13a8053468f6f22ef627e8fde8a77e40e0c16f6 (patch)
tree66e0f5bfa2d06325cbc9d3b8af653923a9eb677e /perl-install
parent5f362f8a4340fee448c932fa8a43663a84c29bd1 (diff)
downloaddrakx-backup-do-not-use-d13a8053468f6f22ef627e8fde8a77e40e0c16f6.tar
drakx-backup-do-not-use-d13a8053468f6f22ef627e8fde8a77e40e0c16f6.tar.gz
drakx-backup-do-not-use-d13a8053468f6f22ef627e8fde8a77e40e0c16f6.tar.bz2
drakx-backup-do-not-use-d13a8053468f6f22ef627e8fde8a77e40e0c16f6.tar.xz
drakx-backup-do-not-use-d13a8053468f6f22ef627e8fde8a77e40e0c16f6.zip
(tar,dist-git) add support for extracting sources from git
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/perl-install/install/Makefile b/perl-install/install/Makefile
index 22370fc3d..430fcb52a 100644
--- a/perl-install/install/Makefile
+++ b/perl-install/install/Makefile
@@ -24,9 +24,20 @@ dist-svn:
tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION)
rm -rf $(PRODUCT)-$(VERSION)
+dist-git:
+ @cd ../..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD kernel perl-install tools Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz;
+
tar:
rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
- @make dist-svn
+ @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 $(PRODUCT)-$(VERSION).tar.xz is ready)
install:
$(MAKE) full_stage2