3 # $NetBSD: cvs.sh.sh,v 1.2 2003/07/12 23:02:59 atatat Exp $
5 # ensure that HOME is set for pserver modes
7 export HOME
=`awk -F: '$3=='"$UID"'{print$6}' /etc/passwd`
8 # supplement path to include ssh and cvs
9 export PATH
=/usr
/pkg
/bin
:$PATH
10 # use ssh instead of rsh for cvs connections
15 export CVSROOT
="anoncvs@anoncvs.NetBSD.org:/cvsroot"
19 export CVSROOT
=":pserver:anoncvs@anoncvs.freebsd.org:/home/ncvs"
23 export CVSROOT
="anoncvs@anoncvs.usa.openbsd.org:/cvs"
27 echo "configuration not supported"
32 if ( echo $file |
egrep -qi '(.*),(-r)?([0-9\.]+|[-_a-z0-9]+)$' ); then
33 rev="-r`expr "$file" : '.*,\(.*\)' | sed 's/^-r//'`"
34 file="`expr "$file" : '\(.*\),.*'`"