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