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