Mercurial > hg > easyhg
view easyhg-extdiff.sh @ 284:a68801b31ceb mainwindow_member_tidy
Make MainWindow members private and m_prefixed
author | Chris Cannam |
---|---|
date | Mon, 21 Feb 2011 09:08:55 +0000 |
parents | 24820581e532 |
children | a1c8630a0057 |
line wrap: on
line source
#!/bin/bash -x p=`dirname $0` if [ $# -lt 2 ]; then echo Insufficient arguments: $@ exit 2 fi while [ $# -gt 2 ]; do shift done found="" for d in kdiff3 kdiff3.exe; do if [ -x "$p/$d" ]; then found=true "$p/$d" "$1" "$2" break elif [ -x "$(type -path $d)" ]; then found=true "$d" "$1" "$2" break; fi done if [ -z "$found" ]; then od=/usr/bin/opendiff if [ -x "$od" ]; then found=true "$od" "$1" "$2" | cat fi fi [ -z "$found" ]