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

Diff of /eclass/cvs.eclass

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

Revision 1.72 Revision 1.73
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.72 2010/08/21 18:21:06 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.73 2010/08/21 19:36:45 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
33# 33#
34# You can set, for example, "cvs -t" for extensive debug information 34# You can set, for example, "cvs -t" for extensive debug information
35# on the cvs connection. The default of "cvs -q -f -z4" means to be 35# on the cvs connection. The default of "cvs -q -f -z4" means to be
36# quiet, to disregard the ~/.cvsrc config file and to use maximum 36# quiet, to disregard the ~/.cvsrc config file and to use maximum
37# compression. 37# compression.
38[[ -z ${ECVS_CVS_COMMAND} ]] && ECVS_CVS_COMMAND="cvs ${ECVS_CVS_OPTIONS} ${ECVS_CVS_COMPRESS}"
38 39
39# @ECLASS-VARIABLE: ECVS_CVS_COMPRESS 40# @ECLASS-VARIABLE: ECVS_CVS_COMPRESS
40# @DESCRIPTION: 41# @DESCRIPTION:
41# Set the compression level. 42# Set the compression level.
42[[ -z ${ECVS_CVS_COMPRESS} ]] && ECVS_CVS_COMPRESS="-z1" 43[[ -z ${ECVS_CVS_COMPRESS} ]] && ECVS_CVS_COMPRESS="-z1"
43 44
44# @ECLASS-VARIABLE: ECVS_CVS_OPTIONS 45# @ECLASS-VARIABLE: ECVS_CVS_OPTIONS
45# @DESCRIPTION: 46# @DESCRIPTION:
46# Additional options to the cvs commands. 47# Additional options to the cvs commands.
47[[ -z ${ECVS_CVS_OPTIONS} ]] && ECVS_CVS_OPTIONS="-q -f" 48[[ -z ${ECVS_CVS_OPTIONS} ]] && ECVS_CVS_OPTIONS="-q -f"
48
49# @ECLASS-VARIABLE: ECVS_CVS_COMMAND
50# @DESCRIPTION:
51# The cvs command.
52[[ -z ${ECVS_CVS_COMMAND} ]] && ECVS_CVS_COMMAND="cvs ${ECVS_CVS_OPTIONS} ${ECVS_CVS_COMPRESS}"
53 49
54# @ECLASS-VARIABLE: ECVS_UP_OPTS 50# @ECLASS-VARIABLE: ECVS_UP_OPTS
55# @DESCRIPTION: 51# @DESCRIPTION:
56# CVS options given after the cvs update command. Don't remove "-dP" or things 52# CVS options given after the cvs update command. Don't remove "-dP" or things
57# won't work. 53# won't work.
68# a CVS source tree. This is intended to be set outside the cvs source 64# a CVS source tree. This is intended to be set outside the cvs source
69# tree by users. 65# tree by users.
70: ${ECVS_OFFLINE:=${ESCM_OFFLINE}} 66: ${ECVS_OFFLINE:=${ESCM_OFFLINE}}
71 67
72# @ECLASS-VARIABLE: ECVS_LOCAL 68# @ECLASS-VARIABLE: ECVS_LOCAL
69# @DEFAULT_UNSET
73# @DESCRIPTION: 70# @DESCRIPTION:
74# If this is set, the CVS module will be fetched non-recursively. 71# If this is set, the CVS module will be fetched non-recursively.
75# Refer to the information in the CVS man page regarding the -l 72# Refer to the information in the CVS man page regarding the -l
76# command option (not the -l global option). 73# command option (not the -l global option).
77 74
78# @ECLASS-VARIABLE: ECVS_LOCALNAME 75# @ECLASS-VARIABLE: ECVS_LOCALNAME
76# @DEFAULT_UNSET
79# @DESCRIPTION: 77# @DESCRIPTION:
80# Local name of checkout directory 78# Local name of checkout directory
81# 79#
82# This is useful if the module on the server is called something 80# This is useful if the module on the server is called something
83# common like 'driver' or is nested deep in a tree, and you don't like 81# common like 'driver' or is nested deep in a tree, and you don't like
104# Set this to "offline" to disable fetching (i.e. to assume the module 102# Set this to "offline" to disable fetching (i.e. to assume the module
105# is already checked out in ECVS_TOP_DIR). 103# is already checked out in ECVS_TOP_DIR).
106[ -z "$ECVS_SERVER" ] && ECVS_SERVER="offline" 104[ -z "$ECVS_SERVER" ] && ECVS_SERVER="offline"
107 105
108# @ECLASS-VARIABLE: ECVS_MODULE 106# @ECLASS-VARIABLE: ECVS_MODULE
107# @REQUIRED
109# @DESCRIPTION: 108# @DESCRIPTION:
110# The name of the CVS module to be fetched 109# The name of the CVS module to be fetched
111# 110#
112# This must be set when cvs_src_unpack is called. This can include 111# This must be set when cvs_src_unpack is called. This can include
113# several directory levels, i.e. "foo/bar/baz" 112# several directory levels, i.e. "foo/bar/baz"
114 113
115#[ -z "$ECVS_MODULE" ] && die "$ECLASS: error: ECVS_MODULE not set, cannot continue" 114#[ -z "$ECVS_MODULE" ] && die "$ECLASS: error: ECVS_MODULE not set, cannot continue"
116 115
117# @ECLASS-VARIABLE: ECVS_BRANCH 116# @ECLASS-VARIABLE: ECVS_BRANCH
117# @DEFAULT_UNSET
118# @DESCRIPTION: 118# @DESCRIPTION:
119# The name of the branch/tag to use 119# The name of the branch/tag to use
120# 120#
121# The default is "HEAD". The following default _will_ reset your 121# The default is "HEAD". The following default _will_ reset your
122# branch checkout to head if used. 122# branch checkout to head if used.
149# @DESCRIPTION: 149# @DESCRIPTION:
150# Password to use for authentication on the remote server 150# Password to use for authentication on the remote server
151[ -z "$ECVS_PASS" ] && ECVS_PASS="" 151[ -z "$ECVS_PASS" ] && ECVS_PASS=""
152 152
153# @ECLASS-VARIABLE: ECVS_SSH_HOST_KEY 153# @ECLASS-VARIABLE: ECVS_SSH_HOST_KEY
154# @DEFAULT_UNSET
154# @DESCRIPTION: 155# @DESCRIPTION:
155# If SSH is used for `ext' authentication, use this variable to 156# If SSH is used for `ext' authentication, use this variable to
156# specify the host key of the remote server. The format of the value 157# specify the host key of the remote server. The format of the value
157# should be the same format that is used for the SSH known hosts file. 158# should be the same format that is used for the SSH known hosts file.
158# 159#
159# WARNING: If a SSH host key is not specified using this variable, the 160# WARNING: If a SSH host key is not specified using this variable, the
160# remote host key will not be verified. 161# remote host key will not be verified.
161 162
162# @ECLASS-VARIABLE: ECVS_CLEAN 163# @ECLASS-VARIABLE: ECVS_CLEAN
164# @DEFAULT_UNSET
163# @DESCRIPTION: 165# @DESCRIPTION:
164# Set this to get a clean copy when updating (passes the 166# Set this to get a clean copy when updating (passes the
165# -C option to cvs update) 167# -C option to cvs update)
166 168
167# @ECLASS-VARIABLE: ECVS_RUNAS 169# @ECLASS-VARIABLE: ECVS_RUNAS
170# @DEFAULT_UNSET
168# @DESCRIPTION: 171# @DESCRIPTION:
169# Specifies an alternate (non-root) user to use to run cvs. Currently 172# Specifies an alternate (non-root) user to use to run cvs. Currently
170# b0rked and wouldn't work with portage userpriv anyway without 173# b0rked and wouldn't work with portage userpriv anyway without
171# special magic. 174# special magic.
172 175

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

  ViewVC Help
Powered by ViewVC 1.1.20