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

Diff of /eclass/subversion.eclass

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

Revision 1.68 Revision 1.69
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.68 2010/06/22 18:34:29 arfrever Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.69 2010/12/19 14:51:46 jlec 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# Bo ├śrsted Andresen <zlin@gentoo.org> 8# Bo ├śrsted Andresen <zlin@gentoo.org>
219 if [[ ! -d ${ESVN_STORE_DIR} ]]; then 219 if [[ ! -d ${ESVN_STORE_DIR} ]]; then
220 debug-print "${FUNCNAME}: initial checkout. creating subversion directory" 220 debug-print "${FUNCNAME}: initial checkout. creating subversion directory"
221 mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}." 221 mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}."
222 fi 222 fi
223 223
224 cd "${ESVN_STORE_DIR}" || die "${ESVN}: can't chdir to ${ESVN_STORE_DIR}" 224 pushd "${ESVN_STORE_DIR}" > /dev/null || die "${ESVN}: can't chdir to ${ESVN_STORE_DIR}"
225 225
226 local wc_path="$(subversion__get_wc_path "${repo_uri}")" 226 local wc_path="$(subversion__get_wc_path "${repo_uri}")"
227 local options="${ESVN_OPTIONS} --config-dir ${ESVN_STORE_DIR}/.subversion" 227 local options="${ESVN_OPTIONS} --config-dir ${ESVN_STORE_DIR}/.subversion"
228 228
229 [[ -n "${revision}" ]] && options="${options} -r ${revision}" 229 [[ -n "${revision}" ]] && options="${options} -r ${revision}"
325 # export to the ${WORKDIR} 325 # export to the ${WORKDIR}
326 #* "svn export" has a bug. see http://bugs.gentoo.org/119236 326 #* "svn export" has a bug. see http://bugs.gentoo.org/119236
327 #* svn export . "${S}" || die "${ESVN}: can't export to ${S}." 327 #* svn export . "${S}" || die "${ESVN}: can't export to ${S}."
328 rsync -rlpgo --exclude=".svn/" . "${S}" || die "${ESVN}: can't export to ${S}." 328 rsync -rlpgo --exclude=".svn/" . "${S}" || die "${ESVN}: can't export to ${S}."
329 fi 329 fi
330
331 popd > /dev/null
330 332
331 echo 333 echo
332} 334}
333 335
334# @FUNCTION: subversion_bootstrap 336# @FUNCTION: subversion_bootstrap

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20