]> git.pld-linux.org Git - packages/varnish.git/blob - branch.sh
- typo
[packages/varnish.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=http://varnish.projects.linpro.no/svn
4 tag=varnish-2.0.4/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 | filter > $out.tmp
23
24 if cmp -s $out{,.tmp}; then
25         echo >&2 "No new diffs..."
26         rm -f $out.tmp
27         exit 0
28 fi
29 mv -f $out{.tmp,}
This page took 0.068963 seconds and 4 git commands to generate.