Discussion:
[2794] (dist-git) introduce & use it
root-odJJhXpcy38dnm+
2012-01-25 18:29:34 UTC
Permalink
Revision: 2794
Author: tv
Date: 2012-01-25 19:29:34 +0100 (Wed, 25 Jan 2012)
Log Message:
-----------
(dist-git) introduce & use it

Modified Paths:
--------------
drakx/trunk/rescue/Makefile

Modified: drakx/trunk/rescue/Makefile
===================================================================
--- drakx/trunk/rescue/Makefile 2012-01-25 18:29:30 UTC (rev 2793)
+++ drakx/trunk/rescue/Makefile 2012-01-25 18:29:34 UTC (rev 2794)
@@ -22,8 +22,20 @@
tar cfa $(PRODUCT)-$(VERSION).tar.xz $(PRODUCT)-$(VERSION)
rm -rf $(PRODUCT)-$(VERSION)

+dist-git:
+ @cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD rescue tools/install-xml-file-list Makefile.config | xz >$(PRODUCT)-$(VERSION).tar.xz;
+
tar:
- @make dist-svn
+ rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+ @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)

clean:
rm -f $(RESCUE) kernel_read_part
root-odJJhXpcy38dnm+
2012-01-25 18:29:56 UTC
Permalink
Revision: 2801
Author: tv
Date: 2012-01-25 19:29:56 +0100 (Wed, 25 Jan 2012)
Log Message:
-----------
(dist-git) introduce & use it

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

Modified: drakx/trunk/perl-install/Makefile
===================================================================
--- drakx/trunk/perl-install/Makefile 2012-01-25 18:29:52 UTC (rev 2800)
+++ drakx/trunk/perl-install/Makefile 2012-01-25 18:29:56 UTC (rev 2801)
@@ -68,8 +68,20 @@
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

Loading...