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

Diff of /eclass/cvs.eclass

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

Revision 1.36 Revision 1.37
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.36 2003/04/19 11:52:50 danarmak Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.37 2003/04/22 09:17:17 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.
79# calls cvs_contorl, is called from cvs_src_unpack 79# calls cvs_contorl, is called from cvs_src_unpack
80cvs_fetch() { 80cvs_fetch() {
81 81
82 debug-print-function $FUNCNAME $* 82 debug-print-function $FUNCNAME $*
83 83
84 # parameters modifying other parameters that should be effective every time cvs_prep is called, and not 84 # parameters modifying other parameters that should be effective every time cvs_fetch is called,
85 # just every time cvs.eclas is inherited 85 # and not just every time cvs.eclas is inherited
86 # 1. parameter for local (non-recursive) fetching 86 # 1. parameter for local (non-recursive) fetching
87 if [ -n "$ECVS_LOCAL" ]; then 87 if [ -n "$ECVS_LOCAL" ]; then
88 ECVS_UP_OPTS="$ECVS_UP_OPTS -l" 88 ECVS_UP_OPTS="$ECVS_UP_OPTS -l"
89 ECVS_CO_OPTS="$ECVS_CO_OPTS -l" 89 ECVS_CO_OPTS="$ECVS_CO_OPTS -l"
90 fi 90 fi
135 # chowning the directory and all contents 135 # chowning the directory and all contents
136 if [ -n "$ECVS_RUNAS" ]; then 136 if [ -n "$ECVS_RUNAS" ]; then
137 $run chown -R "$ECVS_RUNAS" "/$ECVS_TOP_DIR" 137 $run chown -R "$ECVS_RUNAS" "/$ECVS_TOP_DIR"
138 fi 138 fi
139 139
140 # our server string (aka CVSHOST), without the password so it can be put in Root 140 # our server string (aka CVSROOT), without the password so it can be put in Root
141 server=":${ECVS_AUTH}:${ECVS_USER}@${ECVS_SERVER}" 141 server=":${ECVS_AUTH}:${ECVS_USER}@${ECVS_SERVER}"
142 142
143 # switch servers automagically if needed 143 # switch servers automagically if needed
144 if [ "$mode" == "update" ]; then 144 if [ "$mode" == "update" ]; then
145 cd /$ECVS_TOP_DIR/$ECVS_MODULE 145 cd /$ECVS_TOP_DIR/$ECVS_MODULE

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20