| 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.15 2011/07/26 23:22:35 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/bzr.eclass,v 1.17 2011/09/22 08:13:09 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: bzr.eclass |
5 | # @ECLASS: bzr.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
|
|
7 | # Emacs team <emacs@gentoo.org> |
|
|
8 | # Bazaar team <bazaar@gentoo.org> |
|
|
9 | # @AUTHOR: |
| 7 | # Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>, |
10 | # Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> |
| 8 | # Ulrich Müller <ulm@gentoo.org>, |
|
|
| 9 | # Christian Faulhammer <fauli@gentoo.org>, |
|
|
| 10 | # Mark Lee <bzr-gentoo-overlay@lazymalevolence.com>, |
11 | # Mark Lee <bzr-gentoo-overlay@lazymalevolence.com> |
| 11 | # and anyone who wants to help |
12 | # Ulrich Müller <ulm@gentoo.org> |
|
|
13 | # Christian Faulhammer <fauli@gentoo.org> |
| 12 | # @BLURB: generic fetching functions for the Bazaar VCS |
14 | # @BLURB: generic fetching functions for the Bazaar VCS |
| 13 | # @DESCRIPTION: |
15 | # @DESCRIPTION: |
| 14 | # The bzr.eclass provides functions to fetch, unpack, patch, and |
16 | # The bzr.eclass provides functions to fetch, unpack, patch, and |
| 15 | # bootstrap sources from repositories of the Bazaar distributed version |
17 | # bootstrap sources from repositories of the Bazaar distributed version |
| 16 | # control system. The eclass was originally derived from git.eclass. |
18 | # control system. The eclass was originally derived from git.eclass. |
| … | |
… | |
| 229 | || die "${EBZR}: can't move old checkout out of the way" |
231 | || die "${EBZR}: can't move old checkout out of the way" |
| 230 | fi |
232 | fi |
| 231 | |
233 | |
| 232 | if [[ ! -d ${branch_dir}/.bzr ]]; then |
234 | if [[ ! -d ${branch_dir}/.bzr ]]; then |
| 233 | if [[ ${repo_dir} != "${branch_dir}" && ! -d ${repo_dir}/.bzr ]]; then |
235 | if [[ ${repo_dir} != "${branch_dir}" && ! -d ${repo_dir}/.bzr ]]; then |
| 234 | einfo "creating shared bzr repository" |
236 | einfo "creating shared bzr repository: ${repo_dir}" |
| 235 | ${EBZR_INIT_REPO_CMD} "${repo_dir}" \ |
237 | ${EBZR_INIT_REPO_CMD} "${repo_dir}" \ |
| 236 | || die "${EBZR}: can't create shared repository" |
238 | || die "${EBZR}: can't create shared repository" |
| 237 | fi |
239 | fi |
| 238 | |
240 | |
| 239 | if [[ -z ${EBZR_INITIAL_URI} ]]; then |
241 | if [[ -z ${EBZR_INITIAL_URI} ]]; then |