]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
update branch.sh to pull diff from github
authorElan Ruusamäe <glen@delfi.ee>
Wed, 27 Jul 2016 06:36:43 +0000 (09:36 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 27 Jul 2016 06:36:43 +0000 (09:36 +0300)
branch.sh

index ce27a4517142655aa11cc1e84a23f9d4378913d2..05e89e57cf43cb15c387ba8d203ff97d469e9246 100755 (executable)
--- a/branch.sh
+++ b/branch.sh
@@ -1,9 +1,10 @@
 #!/bin/sh
 set -e
 svn=svn://svn.lighttpd.net/lighttpd
+url=https://github.com/lighttpd/lighttpd1.4
 package=lighttpd
-tag=lighttpd-1.4.36
-branch=lighttpd-1.4.x
+tag=lighttpd-1.4.40
+branch=master
 out=lighttpd-branch.diff
 
 # old version of this code used to create tarball.
@@ -26,20 +27,12 @@ filter() {
                -x 'CMakeLists.txt' \
                -x 'configure.ac' \
                -x 'SConstruct' \
-               | \
-       # remove revno's for smaller diffs
-       sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
+       | cat
 }
 
-old=$svn/tags/$tag
-new=$svn/branches/$branch
-echo >&2 "Running diff: $old -> $new"
-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 -urn | head -n1)
-echo >&2 "Revision $revno"
-[ "$revno" -gt 0 ] || exit 1
+echo >&2 "Running diff: $tag...$branch"
+LC_ALL=C curl -Ss $url/compare/$tag...$branch.patch > $out.tmp
 
-sed -i -e "1i# Revision $revno" $out.tmp
 filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
 
 if cmp -s $out{,.tmp}; then
This page took 0.064849 seconds and 4 git commands to generate.