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

Diff of /eclass/bzr.eclass

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

Revision 1.19 Revision 1.20
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 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/bzr.eclass,v 1.19 2012/09/18 06:41:45 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.20 2013/07/11 18:38:59 ulm Exp $
4# 4#
5# @ECLASS: bzr.eclass 5# @ECLASS: bzr.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Emacs team <emacs@gentoo.org> 7# Emacs team <emacs@gentoo.org>
8# Bazaar team <bazaar@gentoo.org> 8# Bazaar team <bazaar@gentoo.org>
38 38
39# @ECLASS-VARIABLE: EBZR_STORE_DIR 39# @ECLASS-VARIABLE: EBZR_STORE_DIR
40# @DESCRIPTION: 40# @DESCRIPTION:
41# The directory to store all fetched Bazaar live sources. 41# The directory to store all fetched Bazaar live sources.
42: ${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr-src} 42: ${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr-src}
43
44# @ECLASS-VARIABLE: EBZR_UNPACK_DIR
45# @DESCRIPTION:
46# The working directory where the sources are copied to.
47: ${EBZR_UNPACK_DIR:=${WORKDIR}/${P}}
43 48
44# @ECLASS-VARIABLE: EBZR_INIT_REPO_CMD 49# @ECLASS-VARIABLE: EBZR_INIT_REPO_CMD
45# @DESCRIPTION: 50# @DESCRIPTION:
46# The Bazaar command to initialise a shared repository. 51# The Bazaar command to initialise a shared repository.
47: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"} 52: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"}
259 export EBZR_REVNO=$(${EBZR_REVNO_CMD}) 264 export EBZR_REVNO=$(${EBZR_REVNO_CMD})
260 265
261 if [[ -n ${EBZR_WORKDIR_CHECKOUT} ]]; then 266 if [[ -n ${EBZR_WORKDIR_CHECKOUT} ]]; then
262 einfo "checking out ..." 267 einfo "checking out ..."
263 ${EBZR_CHECKOUT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \ 268 ${EBZR_CHECKOUT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \
264 . "${WORKDIR}/${P}" || die "${EBZR}: checkout failed" 269 . "${EBZR_UNPACK_DIR}" || die "${EBZR}: checkout failed"
265 else 270 else
266 einfo "exporting ..." 271 einfo "exporting ..."
267 ${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \ 272 ${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \
268 "${WORKDIR}/${P}" . || die "${EBZR}: export failed" 273 "${EBZR_UNPACK_DIR}" . || die "${EBZR}: export failed"
269 fi 274 fi
275 einfo \
270 einfo "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${WORKDIR}/${P}" 276 "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${EBZR_UNPACK_DIR}"
271 277
272 popd > /dev/null 278 popd > /dev/null
273} 279}
274 280
275# @FUNCTION: bzr_bootstrap 281# @FUNCTION: bzr_bootstrap

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20