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

Diff of /eclass/bzr.eclass

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

Revision 1.12 Revision 1.15
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.12 2011/02/19 14:43:57 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.15 2011/07/26 23:22:35 ulm Exp $
4# 4#
5# @ECLASS: bzr.eclass 5# @ECLASS: bzr.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>, 7# Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>,
8# Ulrich Müller <ulm@gentoo.org>, 8# Ulrich Müller <ulm@gentoo.org>,
48: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"} 48: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"}
49 49
50# @ECLASS-VARIABLE: EBZR_FETCH_CMD 50# @ECLASS-VARIABLE: EBZR_FETCH_CMD
51# @DESCRIPTION: 51# @DESCRIPTION:
52# The Bazaar command to fetch the sources. 52# The Bazaar command to fetch the sources.
53: ${EBZR_FETCH_CMD="bzr branch --no-tree"} 53: ${EBZR_FETCH_CMD:="bzr branch --no-tree"}
54 54
55# @ECLASS-VARIABLE: EBZR_UPDATE_CMD 55# @ECLASS-VARIABLE: EBZR_UPDATE_CMD
56# @DESCRIPTION: 56# @DESCRIPTION:
57# The Bazaar command to update the sources. 57# The Bazaar command to update the sources.
58: ${EBZR_UPDATE_CMD:="bzr pull"} 58: ${EBZR_UPDATE_CMD:="bzr pull"}
142# @ECLASS-VARIABLE: EBZR_OFFLINE 142# @ECLASS-VARIABLE: EBZR_OFFLINE
143# @DESCRIPTION: 143# @DESCRIPTION:
144# Set this variable to a non-empty value to disable automatic updating 144# Set this variable to a non-empty value to disable automatic updating
145# of a bzr source tree. This is intended to be set outside the ebuild 145# of a bzr source tree. This is intended to be set outside the ebuild
146# by users. 146# by users.
147: ${EBZR_OFFLINE:=${ESCM_OFFLINE}} 147: ${EBZR_OFFLINE=${EVCS_OFFLINE}}
148 148
149# @FUNCTION: bzr_initial_fetch 149# @FUNCTION: bzr_initial_fetch
150# @USAGE: <repository URI> <branch directory> 150# @USAGE: <repository URI> <branch directory>
151# @DESCRIPTION: 151# @DESCRIPTION:
152# Internal function, retrieves the source code from a repository for the 152# Internal function, retrieves the source code from a repository for the
253 bzr_update "${EBZR_REPO_URI}" "${branch_dir}" 253 bzr_update "${EBZR_REPO_URI}" "${branch_dir}"
254 fi 254 fi
255 255
256 cd "${branch_dir}" || die "${EBZR}: can't chdir to ${branch_dir}" 256 cd "${branch_dir}" || die "${EBZR}: can't chdir to ${branch_dir}"
257 257
258 # Save some variables in environment. #311101 258 # Save revision number in environment. #311101
259 export EBZR_REVNO=$(${EBZR_REVNO_CMD}) 259 export EBZR_REVNO=$(${EBZR_REVNO_CMD})
260 export EBZR_WC_PATH=${branch_dir}
261 260
262 einfo "exporting ..." 261 einfo "exporting ..."
263 ${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \ 262 ${EBZR_EXPORT_CMD} ${EBZR_REVISION:+-r ${EBZR_REVISION}} \
264 "${WORKDIR}/${P}" . || die "${EBZR}: export failed" 263 "${WORKDIR}/${P}" . || die "${EBZR}: export failed"
265 einfo "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${WORKDIR}/${P}" 264 einfo "revision ${EBZR_REVISION:-${EBZR_REVNO}} is now in ${WORKDIR}/${P}"

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20