blob: d9f5fbd15feefcf7cb4b7dab8a00adda3da2fb3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
set -e
svn=http://svn.php.net/repository/php/php-src
tag=php_5_3_2
branch=PHP_5_3
out=php-branch.diff
d=$-
filter() {
set -$d
# remove revno's for smaller diffs
sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
}
old=$svn/tags/$tag
new=$svn/branches/$branch
echo >&2 "Running diff: $old -> $new"
LC_ALL=C svn diff --old=$old --new=$new | filter > $out.tmp
if cmp -s $out{,.tmp}; then
echo >&2 "No new diffs..."
rm -f $out.tmp
exit 0
fi
mv -f $out{.tmp,}
|