usage="Usage:\n $0 filename [revision] [revision]"
argc=$#
if test $argc = 0; then
echo -e "$usage"
exit 1
elif test $argc = 3; then
fileA="/tmp/$1_$2.tmp"
fileB="/tmp/$1_$3.tmp"
# use either set of commands, whichever is faster: cvs -q up -p -r $2 "$1" > "$fileA" cvs -q up -p -r $3 "$1" > "$fileB" #cvs diff -r $2 "$1" | patch -R "$1" -o "$fileA" #cvs diff -r $3 "$1" | patch -R "$1" -o "$fileB" remove="$fileA $fileB"
elif test $argc = 2; then
fileA="/tmp/$1_$2.tmp"
fileB="$1"
cvs diff -r $2 "$1" | patch -R "$1" -o "$fileA"
remove="$fileA"
else
fileA="/tmp/$1.tmp"
fileB="$1"
cvs diff "$1" | patch -R "$1" -o "$fileA"
remove="$fileA"
fi
/c/Program\ Files/KDiff3/kdiff3 "$(cygpath -m
$fileA)" "$(cygpath -m $fileB)" &
Logged In: YES
user_id=473331
ok, I see that I should have attached the file instead of
putting it in the description.
I removed cygpath line and it worked fine for me on linux. Thanks for the script.