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

Diff of /eclass/git.eclass

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

Revision 1.29 Revision 1.30
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.29 2009/09/04 08:00:23 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.30 2009/10/11 11:40:53 maekke 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>
261 if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then 261 if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then
262 ebegin "Garbage collecting the repository" 262 ebegin "Garbage collecting the repository"
263 git gc $(${EGIT_PRUNE} && echo '--prune') 263 git gc $(${EGIT_PRUNE} && echo '--prune')
264 eend $? 264 eend $?
265 fi 265 fi
266 266
267 # export the git version 267 # export the git version
268 export EGIT_VERSION="${cursha1}" 268 export EGIT_VERSION="${cursha1}"
269 269
270 [[ ${EGIT_TREE} != ${EGIT_BRANCH} ]] && elog " tree: ${EGIT_TREE}" 270 [[ ${EGIT_TREE} != ${EGIT_BRANCH} ]] && elog " tree: ${EGIT_TREE}"
271 ${elogcmd} " branch: ${EGIT_BRANCH}" 271 ${elogcmd} " branch: ${EGIT_BRANCH}"
273 273
274 # unpack to the ${S} 274 # unpack to the ${S}
275 unset GIT_DIR 275 unset GIT_DIR
276 debug-print "git clone -l -s -n \"${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}\" \"${S}\"" 276 debug-print "git clone -l -s -n \"${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}\" \"${S}\""
277 git clone -l -s -n "${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" "${S}" 277 git clone -l -s -n "${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" "${S}"
278 278
279 # set correct branch and the tree ebuild specified 279 # set correct branch and the tree ebuild specified
280 pushd "${S}" > /dev/null 280 pushd "${S}" > /dev/null
281 local branchname=branch-${EGIT_BRANCH} src=origin/${EGIT_BRANCH} 281 local branchname=branch-${EGIT_BRANCH} src=origin/${EGIT_BRANCH}
282 if [[ ${EGIT_TREE} != ${EGIT_BRANCH} ]]; then 282 if [[ ${EGIT_TREE} != ${EGIT_BRANCH} ]]; then
283 branchname=tree-${EGIT_TREE} 283 branchname=tree-${EGIT_TREE}
371# @FUNCTION: git_src_prepare 371# @FUNCTION: git_src_prepare
372# @DESCRIPTION: 372# @DESCRIPTION:
373# src_prepare function for git stuff. Patches, bootstrap... 373# src_prepare function for git stuff. Patches, bootstrap...
374git_src_prepare() { 374git_src_prepare() {
375 debug-print-function ${FUNCNAME} "$@" 375 debug-print-function ${FUNCNAME} "$@"
376 376
377 git_apply_patches 377 git_apply_patches
378 git_bootstrap 378 git_bootstrap
379} 379}

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

  ViewVC Help
Powered by ViewVC 1.1.20