[dietlibc] make: embedded monotic increasing number into github patch

ensc ensc at fedoraproject.org
Sun Apr 29 12:54:53 UTC 2012


commit 55acbe41bb59bc3e1a8fc7cabb5d9e758bccbf23
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date:   Sun Apr 29 14:53:58 2012 +0200

    make: embedded monotic increasing number into github patch

 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index b274c60..53a32bd 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ git-patch:
 	cd ${DESTDIR} . && $(GIT) clone --mirror $(GIT_URL) dietlibc.git
 	cd ${DESTDIR} . && cd dietlibc.git && { \
 	ref=`git ls-remote . refs/heads/$(GIT_BRANCH_NEW) | cut -f 1` && \
+	cnt=`git rev-list refs/heads/$(GIT_BRANCH_NEW) | wc -l` && \
 	$(GIT) diff $(GIT_DIFF_OPTS) $(GIT_BRANCH_OLD)..$(GIT_BRANCH_NEW) > diff && \
-	$(GZIP) -c < diff > ../dietlibc-github-$$ref.patch.gz ; }
+	$(GZIP) -c < diff > ../dietlibc-g$$cnt+$$ref.patch.gz ; }
 	cd ${DESTDIR} . && rm -rf dietlibc.git


More information about the scm-commits mailing list