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

Diff of /eclass/git.eclass

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

Revision 1.3 Revision 1.4
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/Attic/git.eclass,v 1.3 2006/12/30 18:21:02 ferdy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.4 2007/03/14 15:48:12 ferdy Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org> 6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org>
7# modified for git by Donnie Berkholz <spyderous@gentoo.org> 7# modified for git by Donnie Berkholz <spyderous@gentoo.org>
8# improved by Fernando J. Pereda <ferdy@gentoo.org> 8# improved by Fernando J. Pereda <ferdy@gentoo.org>
150 local EGIT_CLONE_DIR 150 local EGIT_CLONE_DIR
151 151
152 # EGIT_REPO_URI is empty. 152 # EGIT_REPO_URI is empty.
153 [[ -z ${EGIT_REPO_URI} ]] && die "${EGIT}: EGIT_REPO_URI is empty." 153 [[ -z ${EGIT_REPO_URI} ]] && die "${EGIT}: EGIT_REPO_URI is empty."
154 154
155 # check for the protocol. 155 # check for the protocol or pull from a local repo.
156 if [[ -z ${EGIT_REPO_URI%%:*} ]] ; then
156 case ${EGIT_REPO_URI%%:*} in 157 case ${EGIT_REPO_URI%%:*} in
157 git*|http|https|rsync|ssh) 158 git*|http|https|rsync|ssh)
158 ;; 159 ;;
159 *) 160 *)
160 die "${EGIT}: fetch from "${EGIT_REPO_URI%:*}" is not yet implemented." 161 die "${EGIT}: fetch from "${EGIT_REPO_URI%:*}" is not yet implemented."
161 ;; 162 ;;
162 esac 163 esac
164 fi
163 165
164 if [[ ! -d ${EGIT_STORE_DIR} ]] ; then 166 if [[ ! -d ${EGIT_STORE_DIR} ]] ; then
165 debug-print "${FUNCNAME}: initial clone. creating git directory" 167 debug-print "${FUNCNAME}: initial clone. creating git directory"
166 addwrite / 168 addwrite /
167 mkdir -p "${EGIT_STORE_DIR}" \ 169 mkdir -p "${EGIT_STORE_DIR}" \

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20