annotate easyhg-extdiff.sh @ 298:fd9dc5a457d8

* Make "More Details" button non-auto-default in more-info dialog * Make Incoming dialog show same message as in Pull dialog when no changes are pending * Try to make the confirm-push/pull dialogs look more in-keeping on OS/X... but mostly we end up making their text too small. Hmm.
author Chris Cannam
date Tue, 22 Feb 2011 15:12:56 +0000
parents a1c8630a0057
children ea62eb083ed4
rev   line source
Chris@274 1 #!/bin/bash -x
Chris@269 2 p=`dirname $0`
Chris@210 3 if [ $# -lt 2 ]; then
Chris@210 4 echo Insufficient arguments: $@
Chris@210 5 exit 2
Chris@210 6 fi
Chris@210 7 while [ $# -gt 2 ]; do
Chris@210 8 shift
Chris@210 9 done
Chris@269 10 found=""
Chris@269 11 for d in kdiff3 kdiff3.exe; do
Chris@269 12 if [ -x "$p/$d" ]; then
Chris@269 13 found=true
Chris@269 14 "$p/$d" "$1" "$2"
Chris@269 15 break
Chris@274 16 elif [ -x "$(type -path $d)" ]; then
Chris@274 17 found=true
Chris@274 18 "$d" "$1" "$2"
Chris@274 19 break;
Chris@269 20 fi
Chris@269 21 done
Chris@269 22 if [ -z "$found" ]; then
Chris@269 23 od=/usr/bin/opendiff
Chris@269 24 if [ -x "$od" ]; then
Chris@274 25 found=true
Chris@269 26 "$od" "$1" "$2" | cat
Chris@269 27 fi
Chris@269 28 fi
Chris@292 29 [ -n "$found" ]
Chris@274 30