[csw-devel] SF.net SVN: gar:[10117] csw/mgar/gar/v2/gar.mk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Jun 8 03:27:30 CEST 2010


Revision: 10117
          http://gar.svn.sourceforge.net/gar/?rev=10117&view=rev
Author:   bdwalton
Date:     2010-06-08 01:27:29 +0000 (Tue, 08 Jun 2010)

Log Message:
-----------
gar/v2: git/makepatch: start patch series numbering based on number of patches since pristine source

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.mk

Modified: csw/mgar/gar/v2/gar.mk
===================================================================
--- csw/mgar/gar/v2/gar.mk	2010-06-08 00:08:34 UTC (rev 10116)
+++ csw/mgar/gar/v2/gar.mk	2010-06-08 01:27:29 UTC (rev 10117)
@@ -484,12 +484,13 @@
 		else \
 			echo "Capturing changes..."; \
 			git commit $(GIT_COMMIT_OPTS) && \
-			( git format-patch csw-$(GARVERSION); \
+			( NEXTPATCH=`git log --pretty=oneline master..HEAD | wc -l | tr -d '[[:space:]]'`; \
+			git format-patch --start-number=$$NEXTPATCH csw-$(GARVERSION); \
 			echo Add the following to your recipe and then; \
 			echo rerun: gmake makesums; \
-			echo PATCHFILES +=  0001*; \
+			echo PATCHFILES +=  000$${NEXTPATCH}*; \
 			echo "(or maybe PATCHFILES_$(MODULATION) ??)"; \
-			mv 0001* $(abspath $(FILEDIR)); ) \
+			mv 000$${NEXTPATCH}*patch $(abspath $(FILEDIR)); ) \
 		fi; \
 	    else \
 		echo "No extracted sources so we can't create patches..."; \


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list