packages: lighttpd/lighttpd-branch.sh - store revno in branch diff

glen glen at pld-linux.org
Sun Nov 1 17:43:07 CET 2009


Author: glen                         Date: Sun Nov  1 16:43:07 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- store revno in branch diff

---- Files affected:
packages/lighttpd:
   lighttpd-branch.sh (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: packages/lighttpd/lighttpd-branch.sh
diff -u packages/lighttpd/lighttpd-branch.sh:1.17 packages/lighttpd/lighttpd-branch.sh:1.18
--- packages/lighttpd/lighttpd-branch.sh:1.17	Mon Oct 26 11:01:24 2009
+++ packages/lighttpd/lighttpd-branch.sh	Sun Nov  1 17:43:02 2009
@@ -3,6 +3,7 @@
 svn=svn://svn.lighttpd.net/lighttpd
 tag=lighttpd-1.4.24
 branch=lighttpd-1.4.x
+out=lighttpd-branch.diff
 
 d=$-
 filter() {
@@ -30,7 +31,11 @@
 old=$svn/tags/$tag
 new=$svn/branches/$branch
 echo >&2 "Running diff: $old -> $new"
-LC_ALL=C svn diff --old=$old --new=$new | filter > lighttpd-branch.diff.tmp
+LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
+revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([0-9]\+\))$,\1,p' $out.tmp | sort -u)
+echo >&2 "Revision $revno"
+sed -i -e "1i# Revision $revno" $out.tmp
+filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
 
 if cmp -s lighttpd-branch.diff{,.tmp}; then
 	echo >&2 "No new diffs..."
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lighttpd/lighttpd-branch.sh?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list