]> git.pld-linux.org Git - packages/php.git/blob - php-branch.sh
- switch to svn
[packages/php.git] / php-branch.sh
1 #!/bin/sh
2 set -e
3 svn=http://svn.php.net/repository/php/php-src
4 tag=php_5_2_11
5 branch=PHP_5_2
6
7 d=$-
8 filter() {
9         set -$d
10         # remove revno's for smaller diffs
11         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
12 }
13
14 old=$svn/tags/$tag
15 new=$svn/branches/$branch
16 echo >&2 "Running diff: $old -> $new"
17 LC_ALL=C svn diff --old=$old --new=$new | filter > php-branch.diff.tmp
18
19 if cmp -s php-branch.diff{,.tmp}; then
20         echo >&2 "No new diffs..."
21         rm -f php-branch.diff.tmp
22         exit 0
23 fi
24 mv -f php-branch.diff{.tmp,}
This page took 0.024284 seconds and 4 git commands to generate.