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

Diff of /eclass/cvs.eclass

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

Revision 1.66 Revision 1.67
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.66 2006/12/11 00:09:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.67 2006/12/11 00:11:46 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
33# You can set, for example, "cvs -t" for extensive debug information 33# You can set, for example, "cvs -t" for extensive debug information
34# on the cvs connection. The default of "cvs -q -f -z4" means to be 34# on the cvs connection. The default of "cvs -q -f -z4" means to be
35# quiet, to disregard the ~/.cvsrc config file and to use maximum 35# quiet, to disregard the ~/.cvsrc config file and to use maximum
36# compression. 36# compression.
37 37
38[ -z "$ECVS_CVS_COMMAND" ] && ECVS_CVS_COMMAND="cvs -q -f -z4" 38[[ -z ${ECVS_CVS_COMPRESS} ]] && ECVS_CVS_COMPRESS="-z1"
39[[ -z ${ECVS_CVS_OPTIONS} ]] && ECVS_CVS_OPTIONS="-q -f"
40[[ -z ${ECVS_CVS_COMMAND} ]] && ECVS_CVS_COMMAND="cvs ${ECVS_CVS_OPTIONS} ${ECVS_CVS_COMPRESS}"
39 41
40 42
41# ECVS_UP_OPTS, ECVS_CO_OPTS -- CVS options given after the cvs 43# ECVS_UP_OPTS, ECVS_CO_OPTS -- CVS options given after the cvs
42# command (update or checkout). 44# command (update or checkout).
43# 45#
171 # not affected by modifications in this function. 173 # not affected by modifications in this function.
172 174
173 local ECVS_COMMAND="${ECVS_COMMAND}" 175 local ECVS_COMMAND="${ECVS_COMMAND}"
174 local ECVS_UP_OPTS="${ECVS_UP_OPTS}" 176 local ECVS_UP_OPTS="${ECVS_UP_OPTS}"
175 local ECVS_CO_OPTS="${ECVS_CO_OPTS}" 177 local ECVS_CO_OPTS="${ECVS_CO_OPTS}"
176
177 # Fix for sourceforge which doesnt want -z>3 anymore.
178
179 (echo $ECVS_SERVER | grep -q sourceforge) \
180 && [ "$ECVS_CVS_COMMAND" == "cvs -q -f -z4" ] \
181 && ECVS_CVS_COMMAND="cvs -q -f -z3"
182 178
183 debug-print-function $FUNCNAME $* 179 debug-print-function $FUNCNAME $*
184 180
185 # Update variables that are modified by ebuild parameters, which 181 # Update variables that are modified by ebuild parameters, which
186 # should be effective every time cvs_fetch is called, and not just 182 # should be effective every time cvs_fetch is called, and not just

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

  ViewVC Help
Powered by ViewVC 1.1.20