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

Diff of /eclass/subversion.eclass

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

Revision 1.3 Revision 1.4
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.3 2004/01/26 15:06:02 hattya Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.4 2004/02/08 14:37:59 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
93 93
94 fi 94 fi
95 fi 95 fi
96 96
97 if [ ! -d "${ESVN_STORE_DIR}" ]; then 97 if [ ! -d "${ESVN_STORE_DIR}" ]; then
98 # I don't know why this causes access violation.
98 mkdir -p "${ESVN_STORE_DIR}" 99 addwrite "${ESVN_STORE_DIR}"
100
101 mkdir -p "${ESVN_STORE_DIR}" || die "subversion.eclass: can't mkdir ${ESVN_STORE_DIR}."
99 einfo "created store directory: ${ESVN_STORE_DIR}" 102 einfo "created store directory: ${ESVN_STORE_DIR}"
100 einfo 103 einfo
101 fi 104 fi
102 105
103 cd "${ESVN_STORE_DIR}" 106 cd "${ESVN_STORE_DIR}" || die "subversion.eclass: can't cd to ${ESVN_STORE_DIR}."
104 107
105 # every time 108 # every time
106 addwrite "/etc/subversion" 109 addwrite "/etc/subversion"
107 110
108 # -userpriv 111 # -userpriv
120 # first check out 123 # first check out
121 einfo "subversion check out start -->" 124 einfo "subversion check out start -->"
122 einfo 125 einfo
123 einfo "check out from: ${ESVN_REPO_URI}" 126 einfo "check out from: ${ESVN_REPO_URI}"
124 127
125 mkdir -p "${ESVN_PROJECT}" 128 mkdir -p "${ESVN_PROJECT}" || die "subversion.eclass: can't mkdir ${ESVN_PROJECT}."
126 cd "${ESVN_PROJECT}" 129 cd "${ESVN_PROJECT}" || die "subversion.eclass: can't cd to ${ESVN_PROJECT}."
127 130
128 ${ESVN_FETCH_CMD} "${ESVN_REPO_URI}" 131 ${ESVN_FETCH_CMD} "${ESVN_REPO_URI}" || die "subversion.eclass: can't fetch from ${ESVN_REPO_URI}."
129 einfo " stored in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}" 132 einfo " stored in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
130 133
131 else 134 else
132 # update working copy 135 # update working copy
133 einfo "subversion update start -->" 136 einfo "subversion update start -->"
134 einfo 137 einfo
135 einfo " update from: ${ESVN_REPO_URI}" 138 einfo " update from: ${ESVN_REPO_URI}"
136 139
137 cd "${ESVN_CO_DIR}" 140 cd "${ESVN_CO_DIR}" || die "subversion.eclass: can't cd to ${ESVN_CO_DIR}."
138 ${ESVN_UPDATE_CMD} 141 ${ESVN_UPDATE_CMD} || die "subversion.eclass: can't update from ${ESVN_REPO_URI}."
139 einfo " updated in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}" 142 einfo " updated in: ${ESVN_STORE_DIR}/${ESVN_CO_DIR}"
140 fi 143 fi
141 144
142 # copy to the ${WORKDIR} 145 # copy to the ${WORKDIR}
143 cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}" 146 cp -Rf "${ESVN_STORE_DIR}/${ESVN_CO_DIR}" "${WORKDIR}/${P}" || die "subversion.eclass: can't copy to ${WORKDIR}/${P}."
144 einfo 147 einfo
145 148
146} 149}
147 150
148 151

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

  ViewVC Help
Powered by ViewVC 1.1.20