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

Diff of /eclass/mercurial.eclass

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

Revision 1.9 Revision 1.11
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/mercurial.eclass,v 1.9 2010/01/17 11:21:12 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mercurial.eclass,v 1.11 2010/03/06 12:24:05 djc Exp $
4 4
5# @ECLASS: mercurial.eclass 5# @ECLASS: mercurial.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# nelchael@gentoo.org 7# nelchael@gentoo.org
8# @BLURB: This eclass provides generic mercurial fetching functions 8# @BLURB: This eclass provides generic mercurial fetching functions
14 14
15inherit eutils 15inherit eutils
16 16
17EXPORT_FUNCTIONS src_unpack 17EXPORT_FUNCTIONS src_unpack
18 18
19DEPEND="dev-util/mercurial" 19DEPEND="dev-vcs/mercurial"
20 20
21# @ECLASS-VARIABLE: EHG_REPO_URI 21# @ECLASS-VARIABLE: EHG_REPO_URI
22# @DESCRIPTION: 22# @DESCRIPTION:
23# Mercurial repository URI. 23# Mercurial repository URI.
24 24
90 90
91 # Create project directory: 91 # Create project directory:
92 mkdir -p "${hg_src_dir}/${EHG_PROJECT}" || \ 92 mkdir -p "${hg_src_dir}/${EHG_PROJECT}" || \
93 die "failed to create ${hg_src_dir}/${EHG_PROJECT}" 93 die "failed to create ${hg_src_dir}/${EHG_PROJECT}"
94 chmod -f g+rw "${hg_src_dir}/${EHG_PROJECT}" || \ 94 chmod -f g+rw "${hg_src_dir}/${EHG_PROJECT}" || \
95 die "failed to chwon ${EHG_PROJECT}" 95 echo "Warning: failed to chmod g+rw ${EHG_PROJECT}"
96 cd "${hg_src_dir}/${EHG_PROJECT}" || \ 96 cd "${hg_src_dir}/${EHG_PROJECT}" || \
97 die "failed to cd to ${hg_src_dir}/${EHG_PROJECT}" 97 die "failed to cd to ${hg_src_dir}/${EHG_PROJECT}"
98 98
99 # Clone/update repository: 99 # Clone/update repository:
100 if [[ ! -d "${module}" ]]; then 100 if [[ ! -d "${module}" ]]; then

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20