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

Diff of /eclass/cvs.eclass

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

Revision 1.76 Revision 1.77
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 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.76 2010/08/25 19:57:53 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.77 2012/09/09 07:03:28 ulm 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
63# @ECLASS-VARIABLE: ECVS_OFFLINE 63# @ECLASS-VARIABLE: ECVS_OFFLINE
64# @DESCRIPTION: 64# @DESCRIPTION:
65# Set this variable to a non-empty value to disable the automatic updating of 65# Set this variable to a non-empty value to disable the automatic updating of
66# a CVS source tree. This is intended to be set outside the cvs source 66# a CVS source tree. This is intended to be set outside the cvs source
67# tree by users. 67# tree by users.
68: ${ECVS_OFFLINE:=${ESCM_OFFLINE}} 68: ${ECVS_OFFLINE:=${EVCS_OFFLINE}}
69 69
70# @ECLASS-VARIABLE: ECVS_LOCAL 70# @ECLASS-VARIABLE: ECVS_LOCAL
71# @DEFAULT_UNSET 71# @DEFAULT_UNSET
72# @DESCRIPTION: 72# @DESCRIPTION:
73# If this is set, the CVS module will be fetched non-recursively. 73# If this is set, the CVS module will be fetched non-recursively.
550 cp -Rf "$ECVS_TOP_DIR/$ECVS_LOCALNAME" "$WORKDIR/$ECVS_LOCALNAME/.." 550 cp -Rf "$ECVS_TOP_DIR/$ECVS_LOCALNAME" "$WORKDIR/$ECVS_LOCALNAME/.."
551 fi 551 fi
552 552
553 # Not exactly perfect, but should be pretty close #333773 553 # Not exactly perfect, but should be pretty close #333773
554 export ECVS_VERSION=$(find "$ECVS_TOP_DIR/$ECVS_LOCALNAME/" -ipath '*/CVS/Entries' -exec cat {} + | LC_ALL=C sort | sha1sum | awk '{print $1}') 554 export ECVS_VERSION=$(find "$ECVS_TOP_DIR/$ECVS_LOCALNAME/" -ipath '*/CVS/Entries' -exec cat {} + | LC_ALL=C sort | sha1sum | awk '{print $1}')
555 export ESCM_VERSION=${ECVS_VERSION}
556 555
557 # If the directory is empty, remove it; empty directories cannot 556 # If the directory is empty, remove it; empty directories cannot
558 # exist in cvs. This happens when, for example, kde-source 557 # exist in cvs. This happens when, for example, kde-source
559 # requests module/doc/subdir which doesn't exist. Still create 558 # requests module/doc/subdir which doesn't exist. Still create
560 # the empty directory in workdir though. 559 # the empty directory in workdir though.

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77

  ViewVC Help
Powered by ViewVC 1.1.20