From d13a8053468f6f22ef627e8fde8a77e40e0c16f6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 23 Jan 2012 19:05:55 +0000 Subject: (tar,dist-git) add support for extracting sources from git --- perl-install/install/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'perl-install/install/Makefile') 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 -- cgit v1.2.1