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

Diff of /eclass/cvs.eclass

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

Revision 1.40 Revision 1.41
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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.40 2003/04/27 19:35:00 danarmak Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.41 2003/06/10 22:06:18 danarmak Exp $
4# 4#
5# Author Dan Armak <danarmak@gentoo.org> 5# Author Dan Armak <danarmak@gentoo.org>
6# 6#
7# This eclass provides the generic cvs fetching functions. 7# This eclass provides the generic cvs fetching functions.
8# to use from an ebuild, set the 'ebuild-configurable settings' below in your ebuild before inheriting. 8# to use from an ebuild, set the 'ebuild-configurable settings' below in your ebuild before inheriting.
182 cmdcheckout="${run} ${ECVS_CVS_COMMAND} -d \"${cvsroot_nopass}\" checkout ${ECVS_CO_OPTS} ${ECVS_MODULE}" 182 cmdcheckout="${run} ${ECVS_CVS_COMMAND} -d \"${cvsroot_nopass}\" checkout ${ECVS_CO_OPTS} ${ECVS_MODULE}"
183 183
184 cd "${ECVS_TOP_DIR}" 184 cd "${ECVS_TOP_DIR}"
185 if [ "${ECVS_AUTH}" == "pserver" ]; then 185 if [ "${ECVS_AUTH}" == "pserver" ]; then
186 einfo "Running $cmdlogin" 186 einfo "Running $cmdlogin"
187 eval $cmdlogin 187 eval $cmdlogin || die "cvs login command failed"
188 if [ "${mode}" == "update" ]; then 188 if [ "${mode}" == "update" ]; then
189 einfo "Running $cmdupdate" 189 einfo "Running $cmdupdate"
190 eval $cmdupdate 190 eval $cmdupdate || die "cvs update command failed"
191 elif [ "${mode}" == "checkout" ]; then 191 elif [ "${mode}" == "checkout" ]; then
192 einfo "Running $cmdcheckout" 192 einfo "Running $cmdcheckout"
193 eval $cmdcheckout 193 eval $cmdcheckout|| die "cvs checkout command failed"
194 fi 194 fi
195# elif [ "${ECVS_AUTH}" == "ext" ]; then 195# elif [ "${ECVS_AUTH}" == "ext" ]; then
196# # for ext there's also a possible ssh prompt, code not yet written 196# # for ext there's also a possible ssh prompt, code not yet written
197# echo "${ECVS_DELAY} continue connecting&yes" >> "$instruct" 197# echo "${ECVS_DELAY} continue connecting&yes" >> "$instruct"
198# echo "${ECVS_DELAY} CVS password:&${ECVS_PASS}" >> "$instruct" 198# echo "${ECVS_DELAY} CVS password:&${ECVS_PASS}" >> "$instruct"

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20