]> git.pld-linux.org Git - packages/varnish.git/blame - branch.sh
- apply branch.diff
[packages/varnish.git] / branch.sh
CommitLineData
e8f8a479
ER
1#!/bin/sh
2set -e
3svn=http://varnish.projects.linpro.no/svn
4tag=varnish-2.0.4/varnish-cache
5branch=2.0/varnish-cache
6out=branch.diff
7
8d=$-
9filter() {
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
19old=$svn/tags/$tag
20new=$svn/branches/$branch
21echo >&2 "Running diff: $old -> $new"
22LC_ALL=C svn diff --old=$old --new=$new | filter > $out.tmp
23
24if cmp -s $out{,.tmp}; then
25 echo >&2 "No new diffs..."
26 rm -f $out.tmp
27 exit 0
28fi
29mv -f $out.diff{.tmp,}
This page took 0.076327 seconds and 4 git commands to generate.