diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-23 19:05:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-23 19:05:55 +0000 |
commit | 045f9976116247bc3ef5ce0e5ba56ceeeaab47be (patch) | |
tree | 66e0f5bfa2d06325cbc9d3b8af653923a9eb677e /perl-install | |
parent | 74782bf788b0e33f2e9a6c7d90158f22b9799629 (diff) | |
download | drakx-045f9976116247bc3ef5ce0e5ba56ceeeaab47be.tar drakx-045f9976116247bc3ef5ce0e5ba56ceeeaab47be.tar.gz drakx-045f9976116247bc3ef5ce0e5ba56ceeeaab47be.tar.bz2 drakx-045f9976116247bc3ef5ce0e5ba56ceeeaab47be.tar.xz drakx-045f9976116247bc3ef5ce0e5ba56ceeeaab47be.zip |
(tar,dist-git) add support for extracting sources from git
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install/Makefile | 13 |
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 |