3 svn=svn://svn.code.sf.net/p/ctags/code
10 # Excluding files which change version or were not in dist tarball
17 # remove revno's for smaller diffs
18 sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
23 echo >&2 "Running diff: $old -> $new"
24 LC_ALL=C svn diff --old=$old --new=$new > $out.tmp
25 revno=$(sed -ne 's,^[-+]\{3\} .*\t(revision \([0-9]\+\))$,\1,p' $out.tmp | sort -urn | head -n1)
26 echo >&2 "Revision $revno"
27 [ "$revno" -gt 0 ] || exit 1
29 sed -i -e "1i# Revision $revno" $out.tmp
30 filter < $out.tmp > $out.tmp2 && mv -f $out.{tmp2,tmp}
32 if cmp -s branch.diff{,.tmp}; then
33 echo >&2 "No new diffs..."
37 mv -f branch.diff{.tmp,}