]> git.pld-linux.org Git - packages/varnish.git/blob - branch.sh
- quick -ltinfo fix; rel 5
[packages/varnish.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=http://varnish-cache.org/svn
4 tag=varnish-2.0.6/varnish-cache
5 branch=2.0/varnish-cache
6 out=branch.diff
7
8 d=$-
9 filter() {
10         set -$d
11         # Excluding files which change version or were not in dist tarball
12         filterdiff \
13                 -x 'nothing' \
14                 | \
15         # remove revno's for smaller diffs
16         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
17 }
18
19 old=$svn/tags/$tag
20 new=$svn/branches/$branch
21 echo >&2 "Running diff: $old -> $new"
22 LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
23 revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([^0][0-9]*\))$,\1,p' $out.tmp | sort -u)
24 echo >&2 "Revision $revno"
25 sed -i -e "1i# Revision $revno" $out.tmp
26 filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
27
28 if cmp -s $out{,.tmp}; then
29         echo >&2 "No new diffs..."
30         rm -f $out.tmp
31         exit 0
32 fi
33 mv -f $out{.tmp,}
This page took 0.077064 seconds and 3 git commands to generate.