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

Diff of /eclass/subversion.eclass

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
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/subversion.eclass,v 1.1 2004/01/25 12:27:18 hattya Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.2 2004/01/26 08:46:29 hattya Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# Author: Akinori Hattori <hattya@gentoo.org> 6# Author: Akinori Hattori <hattya@gentoo.org>
7# 7#
8# The subversion eclass is written to fetch the software sources from 8# The subversion eclass is written to fetch the software sources from
84subversion_svn_fetch() { 84subversion_svn_fetch() {
85 85
86 # http only... 86 # http only...
87 if [ "${ESVN_REPO_URI%%:*}" != "http" ]; then 87 if [ "${ESVN_REPO_URI%%:*}" != "http" ]; then
88 if [ -z "${ESVN_REPO_URI}" ]; then 88 if [ -z "${ESVN_REPO_URI}" ]; then
89 die "subversion.eclass: ESVN_REPO_URI is not empty." 89 die "subversion.eclass: ESVN_REPO_URI is empty."
90
91 elif [ "${ESVN_REPO_URI}" = "none" ]; then
92 die "subversion.eclass: ESVN_REPO_URI is not define."
93 90
94 else 91 else
95 die "subversion.eclass: fetch from "${ESVN_REPO_URI%:*}" is not yet implemented." 92 die "subversion.eclass: fetch from "${ESVN_REPO_URI%:*}" is not yet implemented."
96 93
97 fi 94 fi
120 einfo "check out from: ${ESVN_REPO_URI}" 117 einfo "check out from: ${ESVN_REPO_URI}"
121 118
122 mkdir -p "${ESVN_PROJECT}" 119 mkdir -p "${ESVN_PROJECT}"
123 cd "${ESVN_PROJECT}" 120 cd "${ESVN_PROJECT}"
124 121
125 #${ESVN_FETCH_CMD} "${ESVN_REPO_URI}" 122 ${ESVN_FETCH_CMD} "${ESVN_REPO_URI}"
126 einfo " stored in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}" 123 einfo " stored in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
127 124
128 else 125 else
129 # update working copy 126 # update working copy
130 einfo "subversion update start -->" 127 einfo "subversion update start -->"
131 einfo 128 einfo
132 einfo " update from: ${ESVN_REPO_URI}" 129 einfo " update from: ${ESVN_REPO_URI}"
133 130
134 cd "${ESVN_CO_DIR}" 131 cd "${ESVN_CO_DIR}"
135 #${ESVN_UPDATE_CMD} 132 ${ESVN_UPDATE_CMD}
136 einfo " updated in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}" 133 einfo " updated in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
137 fi 134 fi
138 135
139 # copy to the ${WORKDIR} 136 # copy to the ${WORKDIR}
140 cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}" 137 cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20