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

Diff of /eclass/cvs.eclass

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

Revision 1.71 Revision 1.72
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.71 2010/06/19 00:35:11 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.72 2010/08/21 18:21:06 vapier Exp $
4 4
5# @ECLASS: cvs.eclass 5# @ECLASS: cvs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# vapier@gentoo.org (and anyone who wants to help) 7# vapier@gentoo.org (and anyone who wants to help)
8# @BLURB: This eclass provides generic cvs fetching functions 8# @BLURB: This eclass provides generic cvs fetching functions
60# @ECLASS-VARIABLE: ECVS_CO_OPTS 60# @ECLASS-VARIABLE: ECVS_CO_OPTS
61# @DESCRIPTION: 61# @DESCRIPTION:
62# CVS options given after the cvs checkout command. 62# CVS options given after the cvs checkout command.
63[ -z "$ECVS_CO_OPTS" ] && ECVS_CO_OPTS="" 63[ -z "$ECVS_CO_OPTS" ] && ECVS_CO_OPTS=""
64 64
65# @ECLASS-VARIABLE: ECVS_OFFLINE
66# @DESCRIPTION:
67# Set this variable to a non-empty value to disable the automatic updating of
68# a CVS source tree. This is intended to be set outside the cvs source
69# tree by users.
70: ${ECVS_OFFLINE:=${ESCM_OFFLINE}}
65 71
66# @ECLASS-VARIABLE: ECVS_LOCAL 72# @ECLASS-VARIABLE: ECVS_LOCAL
67# @DESCRIPTION: 73# @DESCRIPTION:
68# If this is set, the CVS module will be fetched non-recursively. 74# If this is set, the CVS module will be fetched non-recursively.
69# Refer to the information in the CVS man page regarding the -l 75# Refer to the information in the CVS man page regarding the -l
509 ECVS_LOCALNAME="$ECVS_MODULE" 515 ECVS_LOCALNAME="$ECVS_MODULE"
510 fi 516 fi
511 517
512 local sanitized_pn=$(echo "${PN}" | LC_ALL=C sed -e 's:[^A-Za-z0-9_]:_:g') 518 local sanitized_pn=$(echo "${PN}" | LC_ALL=C sed -e 's:[^A-Za-z0-9_]:_:g')
513 local offline_pkg_var="ECVS_OFFLINE_${sanitized_pn}" 519 local offline_pkg_var="ECVS_OFFLINE_${sanitized_pn}"
514 if [ "${!offline_pkg_var}" == "1" -o "$ECVS_OFFLINE" == "1" -o "$ECVS_SERVER" == "offline" ]; then 520 if [[ -n ${!offline_pkg_var}${ECVS_OFFLINE} ]] || [[ "$ECVS_SERVER" == "offline" ]] ; then
515 # We're not required to fetch anything; the module already 521 # We're not required to fetch anything; the module already
516 # exists and shouldn't be updated. 522 # exists and shouldn't be updated.
517 if [ -d "${ECVS_TOP_DIR}/${ECVS_LOCALNAME}" ]; then 523 if [ -d "${ECVS_TOP_DIR}/${ECVS_LOCALNAME}" ]; then
518 debug-print "$FUNCNAME: offline mode" 524 debug-print "$FUNCNAME: offline mode"
519 else 525 else

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20