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

Diff of /eclass/subversion.eclass

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

Revision 1.12 Revision 1.13
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.12 2004/06/13 12:58:03 hattya Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/subversion.eclass,v 1.13 2004/06/13 13:19:52 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
161 einfo "subversion update start -->" 161 einfo "subversion update start -->"
162 einfo " update from: ${ESVN_REPO_URI}" 162 einfo " update from: ${ESVN_REPO_URI}"
163 cd "${ESVN_CO_DIR}" 163 cd "${ESVN_CO_DIR}"
164 164
165 local NOW=$(date +%s) UPDATE=$(date -r .svn/entries +%s) INTERVAL=3600 165 local NOW=$(date +%s) UPDATE=$(date -r .svn/entries +%s) INTERVAL=3600
166 if expr ${NOW} - ${UPDATE} \> ${INTERVAL} >/dev/null; then 166 if (( ${NOW} - ${UPDATE} > ${INTERVAL} )); then
167 ${ESVN_UPDATE_CMD} || die "${ESVN}: can't update from ${ESVN_REPO_URI}." 167 ${ESVN_UPDATE_CMD} || die "${ESVN}: can't update from ${ESVN_REPO_URI}."
168 168
169 else 169 else
170 echo "Skip updating..." 170 echo "Skip updating..."
171 171

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20