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

Diff of /eclass/git.eclass

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

Revision 1.28 Revision 1.29
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/Attic/git.eclass,v 1.28 2009/08/24 21:48:58 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.29 2009/09/04 08:00:23 scarabeus Exp $
4 4
5# @ECLASS: git.eclass 5# @ECLASS: git.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Tomas Chvatal <scarabeus@gentoo.org> 7# Tomas Chvatal <scarabeus@gentoo.org>
8# Donnie Berkholz <dberkholz@gentoo.org> 8# Donnie Berkholz <dberkholz@gentoo.org>
73# https:// 73# https://
74# git:// 74# git://
75# git+ssh:// 75# git+ssh://
76# rsync:// 76# rsync://
77# ssh:// 77# ssh://
78eval X="\$${PN//-/_}_LIVE_REPO" 78eval X="\$${PN//[-+]/_}_LIVE_REPO"
79if [[ ${X} = "" ]]; then 79if [[ ${X} = "" ]]; then
80 EGIT_REPO_URI=${EGIT_REPO_URI:=} 80 EGIT_REPO_URI=${EGIT_REPO_URI:=}
81else 81else
82 EGIT_REPO_URI="${X}" 82 EGIT_REPO_URI="${X}"
83fi 83fi
111# Please take note that this variable should be bash array. 111# Please take note that this variable should be bash array.
112 112
113# @ECLASS-VARIABLE: EGIT_BRANCH 113# @ECLASS-VARIABLE: EGIT_BRANCH
114# @DESCRIPTION: 114# @DESCRIPTION:
115# git eclass can fetch any branch in git_fetch(). 115# git eclass can fetch any branch in git_fetch().
116eval X="\$${PN//-/_}_LIVE_BRANCH" 116eval X="\$${PN//[-+]/_}_LIVE_BRANCH"
117if [[ ${X} = "" ]]; then 117if [[ ${X} = "" ]]; then
118 EGIT_BRANCH=${EGIT_BRANCH:=master} 118 EGIT_BRANCH=${EGIT_BRANCH:=master}
119else 119else
120 EGIT_BRANCH="${X}" 120 EGIT_BRANCH="${X}"
121fi 121fi
122 122
123# @ECLASS-VARIABLE: EGIT_TREE 123# @ECLASS-VARIABLE: EGIT_TREE
124# @DESCRIPTION: 124# @DESCRIPTION:
125# git eclass can checkout any tree (commit). 125# git eclass can checkout any tree (commit).
126eval X="\$${PN//-/_}_LIVE_TREE" 126eval X="\$${PN//[-+]/_}_LIVE_TREE"
127if [[ ${X} = "" ]]; then 127if [[ ${X} = "" ]]; then
128 : ${EGIT_TREE:=${EGIT_BRANCH}} 128 : ${EGIT_TREE:=${EGIT_BRANCH}}
129else 129else
130 EGIT_TREE="${X}" 130 EGIT_TREE="${X}"
131fi 131fi

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20