]> git.pld-linux.org Git - packages/lighttpd.git/blame - branch.sh
- update branch diff:
[packages/lighttpd.git] / branch.sh
CommitLineData
68f8f1d1 1#!/bin/sh
51e3e0fc
ER
2set -e
3svn=svn://svn.lighttpd.net/lighttpd
902fac5f 4tag=lighttpd-1.4.29
68f8f1d1 5branch=lighttpd-1.4.x
c9b13aff 6out=lighttpd-branch.diff
51e3e0fc 7
01fdb465
ER
8d=$-
9filter() {
10 set -$d
11 # Excluding files which change version or were not in dist tarball
b31955c6
ER
12 filterdiff \
13 -x 'ChangeLog' \
14 -x 'CMakeLists.txt' \
ac6a2637 15 -x 'configure.ac' \
b31955c6
ER
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 | \
01fdb465
ER
27 # remove revno's for smaller diffs
28 sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
29}
30
51e3e0fc
ER
31old=$svn/tags/$tag
32new=$svn/branches/$branch
01fdb465 33echo >&2 "Running diff: $old -> $new"
c9b13aff
ER
34LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
35revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([0-9]\+\))$,\1,p' $out.tmp | sort -u)
36echo >&2 "Revision $revno"
37sed -i -e "1i# Revision $revno" $out.tmp
38filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
cc37bbfb 39
01fdb465
ER
40if cmp -s lighttpd-branch.diff{,.tmp}; then
41 echo >&2 "No new diffs..."
42 rm -f lighttpd-branch.diff.tmp
43 exit 0
44fi
45mv -f lighttpd-branch.diff{.tmp,}
This page took 0.040915 seconds and 4 git commands to generate.