#!/bin/sh
#
# make sure that cygwin is using binary mode for files
if [ -z "$CYGWIN" ]
then
    export CYGWIN="binmode ntsec" # change "ntsec" to "ntea" on Windows 2000
else
    export CYGWIN="binmode $CYGWIN"
fi
#
# Run ssh-agent and save its pid in an environment variable
eval `ssh-agent`
#
# Load your private key
ssh-add $HOME/.ssh/identity
#
# Run wincvs.  It must be run as a sub-process from this shell to be able
# to access the ssh-agent.
/cygdrive/c/wincvs/wincvs.exe
#
# and kill the ssh-agent before exiting
ssh-agent -k
exit 0
