Discussion:
[2768] (tar,dist-git) add support for extracting sources from git
root-odJJhXpcy38dnm+
2012-01-23 19:05:55 UTC
Permalink
Revision: 2768
Author: tv
Date: 2012-01-23 20:05:55 +0100 (Mon, 23 Jan 2012)
Log Message:
-----------
(tar,dist-git) add support for extracting sources from git

Modified Paths:
--------------
drakx/trunk/perl-install/install/Makefile

Modified: drakx/trunk/perl-install/install/Makefile
===================================================================
--- drakx/trunk/perl-install/install/Makefile 2012-01-23 19:05:52 UTC (rev 2767)
+++ drakx/trunk/perl-install/install/Makefile 2012-01-23 19:05:55 UTC (rev 2768)
@@ -24,9 +24,20 @@
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

Loading...