]> git.pld-linux.org Git - packages/lighttpd.git/blob - branch.sh
- up to 1.4.24
[packages/lighttpd.git] / branch.sh
1 #!/bin/sh
2 set -e
3 svn=svn://svn.lighttpd.net/lighttpd
4 tag=lighttpd-1.4.24
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 \
12                 -x 'ChangeLog' \
13                 -x 'CMakeLists.txt' \
14                 -x 'configure.ac' \
15                 -x 'configure.in' \
16                 -x '.cvsignore' \
17                 -x 'doc/.cvsignore' \
18                 -x 'SConstruct' \
19                 -x 'src/CMakeLists.txt' \
20                 -x 'src/config.h.cmake' \
21                 -x 'src/.cvsignore' \
22                 -x 'src/mod_uploadprogress.c' \
23                 -x 'tests/.cvsignore' \
24                 -x 'tests/mod-extforward.conf' \
25                 | \
26         # remove revno's for smaller diffs
27         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
28 }
29
30 old=$svn/tags/$tag
31 new=$svn/branches/$branch
32 echo >&2 "Running diff: $old -> $new"
33 LC_ALL=C svn diff --old=$old --new=$new | filter > lighttpd-branch.diff.tmp
34
35 if cmp -s lighttpd-branch.diff{,.tmp}; then
36         echo >&2 "No new diffs..."
37         rm -f lighttpd-branch.diff.tmp
38         exit 0
39 fi
40 mv -f lighttpd-branch.diff{.tmp,}
This page took 0.026767 seconds and 4 git commands to generate.