* subversion/svn/main.c
[svn.git] / contrib / client-side / diff-wrap.sh
blobcd72b53e0fa5bc7846c85d262a1968708136fbf7
1 #!/bin/sh
3 # A wrapper for invoking a thrid-party diff program (e.g. Mac OS X opendiff)
4 # from 'svn diff --diff-cmd=diff-wrap.sh ARGS... > /dev/null'.
6 # $HeadURL$
7 # $LastChangedDate$
8 # $LastChangedBy$
9 # $LastChangedRevision$
11 if [ $# -lt 2 ]; then
12 echo "usage: $0 [ignored args...] file1 file2" >&2
13 exit 1
16 # Configure your favoriate diff program here.
17 DIFF=opendiff
19 # The last two arguments passed to this script are the paths to the files
20 # to diff.
21 while [ $# -gt 2 ]; do
22 shift
23 done
25 # Call the diff command (change the following line to make sense for your
26 # merge program).
27 exec $DIFF $*