X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=scripts%2Fsvn-diff;fp=scripts%2Fsvn-diff;h=09add31459583ffc1d70721fae4c464a54d3460f;hb=31efe1f8304f09a4f4139c387a98d3215cd423c9;hp=0000000000000000000000000000000000000000;hpb=27828bc1b0010ee87c2f68e31fb77fd4ae39fa6b;p=lttv.git diff --git a/scripts/svn-diff b/scripts/svn-diff new file mode 100755 index 00000000..09add314 --- /dev/null +++ b/scripts/svn-diff @@ -0,0 +1,20 @@ +#! /bin/sh + +# wrapper for svn diff command +# +# svn always call this with: +# $1 = -u +# $2 = -L +# $3 = left file label +# $4 = -L +# $5 = right file label +# $6 = left file name +# $7 = right file name + +OLDDIR=a +NEWDIR=b + +exec /usr/bin/diff -up "$1" "$2" "$3" "$4" "$5" "$6" "$7" | \ + sed -e "s/^--- \([^\/].*\)/--- $OLDDIR\/\1/" | \ + sed -e "s/^+++ \([^\/].*\)/+++ $NEWDIR\/\1/" +