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