#!/bin/sh ## script to run tkdiff in cygwin and accept cygwin's unix paths ## tkdiff is available here: http://www.accurev.com/free/tkdiff/ ## see also tkcvs and tkdiffb: http://www.twobarleycorns.net/tkcvs.html ## cygtkcvs startup script (c) 2003 by Adam Katz , GPL TKDIFF='C:\cygwin\bin\tkdiff.tcl' WISH='C:\cygwin\bin\wish83.exe' # OPTIONAL if windows recognizes .tcl files if [ ! -x "$TKDIFF" ]; then echo "Please edit $0 and assign a valid entry to TKDIFF." echo "It is currently: $TKDIFF"; exit 1 fi while echo "$1" |grep -q '^-'; do args="$args $1"; shift done [ -e "$1" ] && FILE1=`cygpath -w -- "$1"` [ -e "$2" ] && FILE2=`cygpath -w -- "$2"` # if no $2, tries to compare to CVS cygstart "$TKDIFF" $args "$FILE1" "$FILE2" \ || "$WISH" "$TKDIFF" $args "$FILE1" "$FILE2"