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

Diff of /eclass/git-2.eclass

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

Revision 1.7 Revision 1.11
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/git-2.eclass,v 1.7 2011/05/20 14:35:01 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.11 2011/06/08 15:18:13 dberkholz Exp $
4 4
5# @ECLASS: git-2.eclass 5# @ECLASS: git-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Tomas Chvatal <scarabeus@gentoo.org> 7# Donnie Berkholz <dberkholz@gentoo.org>
8# @BLURB: Eclass for fetching and unpacking git repositories. 8# @BLURB: Eclass for fetching and unpacking git repositories.
9# @DESCRIPTION: 9# @DESCRIPTION:
10# Eclass for easing maitenance of live ebuilds using git as remote repository. 10# Eclass for easing maitenance of live ebuilds using git as remote repository.
11# Eclass support working with git submodules and branching. 11# Eclass support working with git submodules and branching.
12 12
236 addwrite / 236 addwrite /
237 mkdir -p "${EGIT_STORE_DIR}" \ 237 mkdir -p "${EGIT_STORE_DIR}" \
238 || die "${FUNCNAME}: can't mkdir \"${EGIT_STORE_DIR}\"" 238 || die "${FUNCNAME}: can't mkdir \"${EGIT_STORE_DIR}\""
239 fi 239 fi
240 240
241 cd -P "${EGIT_STORE_DIR}" \
242 || die "${FUNCNAME}: can't chdir to \"${EGIT_STORE_DIR}\""
243 # allow writing into EGIT_STORE_DIR 241 # allow writing into EGIT_STORE_DIR
244 addwrite "${EGIT_STORE_DIR}" 242 addwrite "${EGIT_STORE_DIR}"
245 # calculate the proper store dir for data 243 # calculate the proper store dir for data
246 # If user didn't specify the EGIT_DIR, we check if he did specify 244 # If user didn't specify the EGIT_DIR, we check if he did specify
247 # the EGIT_PROJECT or get the folder name from EGIT_REPO_URI. 245 # the EGIT_PROJECT or get the folder name from EGIT_REPO_URI.
518 git-2_submodules 516 git-2_submodules
519 git-2_move_source 517 git-2_move_source
520 git-2_branch 518 git-2_branch
521 git-2_bootstrap 519 git-2_bootstrap
522 echo ">>> Unpacked to ${EGIT_SOURCEDIR}" 520 echo ">>> Unpacked to ${EGIT_SOURCEDIR}"
521
522 # Users can specify some SRC_URI and we should
523 # unpack the files too.
524 default_src_unpack
523} 525}

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

  ViewVC Help
Powered by ViewVC 1.1.20