/[gentoo-x86]/eclass/cvs.eclass
Gentoo

Diff of /eclass/cvs.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.65 Revision 1.66
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.65 2006/10/14 20:27:21 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.66 2006/12/11 00:09:31 vapier Exp $
4# 4#
5# Maintainer: vapier@gentoo.org (and anyone who wants to help) 5# Maintainer: vapier@gentoo.org (and anyone who wants to help)
6 6
7inherit eutils 7inherit eutils
8 8
113[ -z "$ECVS_AUTH" ] && ECVS_AUTH="pserver" 113[ -z "$ECVS_AUTH" ] && ECVS_AUTH="pserver"
114 114
115# ECVS_USER -- Username to use for authentication on the remote server 115# ECVS_USER -- Username to use for authentication on the remote server
116[ -z "$ECVS_USER" ] && ECVS_USER="anonymous" 116[ -z "$ECVS_USER" ] && ECVS_USER="anonymous"
117 117
118
119# ECVS_PASS -- Password to use for authentication on the remote server 118# ECVS_PASS -- Password to use for authentication on the remote server
120[ -z "$ECVS_PASS" ] && ECVS_PASS="" 119[ -z "$ECVS_PASS" ] && ECVS_PASS=""
121 120
122 121
123# ECVS_SSH_HOST_KEY 122# ECVS_SSH_HOST_KEY
273 # be put in Root 272 # be put in Root
274 if [ "$ECVS_AUTH" == "no" ] 273 if [ "$ECVS_AUTH" == "no" ]
275 then 274 then
276 local server="${ECVS_USER}@${ECVS_SERVER}" 275 local server="${ECVS_USER}@${ECVS_SERVER}"
277 else 276 else
277 local connection="${ECVS_AUTH}"
278 [[ -n ${ECVS_PROXY} ]] && connection="${connection};proxy=${ECVS_PROXY}"
279 [[ -n ${ECVS_PROXY_PORT} ]] && connection="${connection};proxyport=${ECVS_PROXY_PORT}"
278 local server=":${ECVS_AUTH}:${ECVS_USER}@${ECVS_SERVER}" 280 local server=":${connection}:${ECVS_USER}@${ECVS_SERVER}"
279 fi 281 fi
280 282
281 # Switch servers automagically if needed 283 # Switch servers automagically if needed
282 if [ "$mode" == "update" ]; then 284 if [ "$mode" == "update" ]; then
283 cd /$ECVS_TOP_DIR/$ECVS_LOCALNAME 285 cd /$ECVS_TOP_DIR/$ECVS_LOCALNAME

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.20