]> git.pld-linux.org Git - packages/varnish.git/blame - branch.sh
up to 3.0.7
[packages/varnish.git] / branch.sh
CommitLineData
e8f8a479
ER
1#!/bin/sh
2set -e
5bd321dc 3svn=http://varnish-cache.org/svn
9eb7b212 4tag=varnish-2.0.6/varnish-cache
e8f8a479
ER
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"
a5001fa8
ER
22LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
23revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([^0][0-9]*\))$,\1,p' $out.tmp | sort -u)
24echo >&2 "Revision $revno"
25sed -i -e "1i# Revision $revno" $out.tmp
26filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
e8f8a479
ER
27
28if cmp -s $out{,.tmp}; then
29 echo >&2 "No new diffs..."
30 rm -f $out.tmp
31 exit 0
32fi
49a08280 33mv -f $out{.tmp,}
This page took 0.060756 seconds and 4 git commands to generate.