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

Diff of /eclass/subversion.eclass

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

Revision 1.82 Revision 1.83
1# Copyright 1999-2012 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/subversion.eclass,v 1.82 2012/07/29 05:38:42 hattya Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.83 2012/07/29 05:54:17 hattya Exp $
4 4
5# @ECLASS: subversion.eclass 5# @ECLASS: subversion.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Akinori Hattori <hattya@gentoo.org> 7# Akinori Hattori <hattya@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
59# @DESCRIPTION: 59# @DESCRIPTION:
60# repository uri 60# repository uri
61# 61#
62# e.g. http://foo/trunk, svn://bar/trunk, svn://bar/branch/foo@1234 62# e.g. http://foo/trunk, svn://bar/trunk, svn://bar/branch/foo@1234
63# 63#
64# supported protocols: 64# supported URI schemes:
65# http:// 65# http://
66# https:// 66# https://
67# svn:// 67# svn://
68# svn+ssh:// 68# svn+ssh://
69# file://
69# 70#
70# to peg to a specific revision, append @REV to the repo's uri 71# to peg to a specific revision, append @REV to the repo's uri
71ESVN_REPO_URI="${ESVN_REPO_URI:-}" 72ESVN_REPO_URI="${ESVN_REPO_URI:-}"
72 73
73# @ECLASS-VARIABLE: ESVN_REVISION 74# @ECLASS-VARIABLE: ESVN_REVISION
186 die "${ESVN}: ESVN_REPO_URI (or specified URI) is empty." 187 die "${ESVN}: ESVN_REPO_URI (or specified URI) is empty."
187 fi 188 fi
188 189
189 [[ -n "${ESVN_REVISION}" ]] && revision="${ESVN_REVISION}" 190 [[ -n "${ESVN_REVISION}" ]] && revision="${ESVN_REVISION}"
190 191
191 # check for the protocol 192 # check for the scheme
192 local protocol="${repo_uri%%:*}" 193 local scheme="${repo_uri%%:*}"
193 case "${protocol}" in 194 case "${scheme}" in
194 http|https) 195 http|https)
195 ;; 196 ;;
196 svn|svn+ssh) 197 svn|svn+ssh)
197 ;; 198 ;;
199 file)
200 ;;
198 *) 201 *)
199 die "${ESVN}: fetch from '${protocol}' is not yet implemented." 202 die "${ESVN}: fetch from '${scheme}' is not yet implemented."
200 ;; 203 ;;
201 esac 204 esac
202 205
203 addread "/etc/subversion" 206 addread "/etc/subversion"
204 addwrite "${ESVN_STORE_DIR}" 207 addwrite "${ESVN_STORE_DIR}"

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

  ViewVC Help
Powered by ViewVC 1.1.20