]> git.pld-linux.org Git - packages/lighttpd.git/blob - branch.sh
- move filtering code to function
[packages/lighttpd.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=svn://svn.lighttpd.net/lighttpd
4 tag=lighttpd-1.4.23
5 branch=lighttpd-1.4.x
6
7 d=$-
8 filter() {
9         set -$d
10         # Excluding files which change version or were not in dist tarball
11         filterdiff -x tests/mod-extforward.conf -x ChangeLog -x .cvsignore -x src/.cvsignore -x tests/.cvsignore -x doc/.cvsignore -x 'configure.in' -x 'SConstruct' -x 'CMakeLists.txt' -x 'src/CMakeLists.txt' -x 'src/config.h.cmake' -x 'src/mod_uploadprogress.c' | \
12         # remove revno's for smaller diffs
13         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
14 }
15
16 old=$svn/tags/$tag
17 new=$svn/branches/$branch
18 echo >&2 "Running diff: $old -> $new"
19 LC_ALL=C svn diff --old=$old --new=$new | filter > lighttpd-branch.diff.tmp
20
21 if cmp -s lighttpd-branch.diff{,.tmp}; then
22         echo >&2 "No new diffs..."
23         rm -f lighttpd-branch.diff.tmp
24         exit 0
25 fi
26 mv -f lighttpd-branch.diff{.tmp,}
This page took 0.050125 seconds and 4 git commands to generate.