Commit | Line | Data |
---|---|---|
3e122d84 | 1 | #! /bin/sh |
2 | ||
3 | # wrapper for svn diff command | |
4 | # | |
5 | # svn always call this with: | |
6 | # $1 = -u | |
7 | # $2 = -L | |
8 | # $3 = left file label | |
9 | # $4 = -L | |
10 | # $5 = right file label | |
11 | # $6 = left file name | |
12 | # $7 = right file name | |
13 | ||
14 | OLDDIR=a | |
15 | NEWDIR=b | |
16 | ||
17 | exec /usr/bin/diff -up "$1" "$2" "$3" "$4" "$5" "$6" "$7" | \ | |
18 | sed -e "s/^--- \([^\/].*\)/--- $OLDDIR\/\1/" | \ | |
19 | sed -e "s/^+++ \([^\/].*\)/+++ $NEWDIR\/\1/" | |
20 |