CVS: Remote Repository

When a CVS repository exists in a directory such as '/home/cvsRoot' and you have access to ssh, the repository can also be accessed from remote machines. The following script is a sample configuration script that would enable this to work.

cvsEnv.sh
#!/bin/sh

export CVSROOT=`whoami`'@cvsHost.HallsHome.com:/home/cvsRoot'
export CVS_RSH=ssh
export CVS_SERVER=/usr/local/cvs/bin # cvs location on cvsHost

if [ -d "/usr/bin/cvs"  ]; then
    CVS_PATH="/usr/bin/cvs"
elif [ -d "/use/local/cvs-1.10.5/" ]; then
    CVS_PATH="/usr/local/cvs-1.10.5"
fi

if [ "$CVS_PATH" = "" ]; then
    echo "CVS_PATH: Undefined"
else
    echo "CVS_PATH: $CVS_PATH"
    export PATH=~${PATH}:${CVS_PATH}/bin
fi


Roger
Roger Hall
COMPUSPEC
Google
 
Web Compuspec.net
Valid XHTML 1.0!
Valid CSS!