3 svnroot=https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php
4 tag=branches/ffmpeg-php/ffmpeg-php-0.6.0
11 # remove revno's for smaller diffs
12 sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
17 echo >&2 "Running diff: $old -> $new"
18 LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
19 revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([0-9]\+\))$,\1,p' $out.tmp | sort -urn | head -n1)
20 echo >&2 "Revision $revno"
21 [ "$revno" -gt 0 ] || exit 1
23 sed -i -e "1i# Revision $revno" $out.tmp
24 filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
26 if cmp -s branch.diff{,.tmp}; then
27 echo >&2 "No new diffs..."
31 mv -f branch.diff{.tmp,}