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

Diff of /eclass/cvs.eclass

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

Revision 1.38 Revision 1.39
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 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/cvs.eclass,v 1.38 2003/04/22 20:43:29 danarmak Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.39 2003/04/23 20:09:50 danarmak Exp $
4# 4#
5# Author Dan Armak <danarmak@gentoo.org> 5# Author Dan Armak <danarmak@gentoo.org>
6# 6#
7# This eclass provides the generic cvs fetching functions. 7# This eclass provides the generic cvs fetching functions.
8# to use from an ebuild, set the 'ebuild-configurable settings' below in your ebuild before inheriting. 8# to use from an ebuild, set the 'ebuild-configurable settings' below in your ebuild before inheriting.
229 229
230 [ -z "$ECVS_MODULE" ] && die "ERROR: CVS module not set, cannot continue." 230 [ -z "$ECVS_MODULE" ] && die "ERROR: CVS module not set, cannot continue."
231 231
232 if [ "$ECVS_SERVER" == "offline" ]; then 232 if [ "$ECVS_SERVER" == "offline" ]; then
233 # we're not required to fetch anything, the module already exists and shouldn't be updated 233 # we're not required to fetch anything, the module already exists and shouldn't be updated
234 if [ -d "${ECVS_TOP_DIR}/${ECVS_MODULE}" ]; then 234 if [ -d "${ECVS_TOP_DIR}/${ECVS_MODULE}" ]; then
235 debug-print "$FUNCNAME: offline mode, exiting" 235 debug-print "$FUNCNAME: offline mode, exiting"
236 return 0 236 return 0
237 else 237 else
238 debug-print "$FUNCNAME: offline mode specified but module/subdir not found, exiting with error" 238 debug-print "$FUNCNAME: offline mode specified but directory ${ECVS_TOP_DIR}/${ECVS_MODULE} not found, exiting with error"
239 die "ERROR: Offline mode specified, but module/subdir checkout not found. Aborting." 239 die "ERROR: Offline mode specified, but dir ${ECVS_TOP_DIR}/${ECVS_MODULE} not found. Aborting."
240 fi 240 fi
241 elif [ -n "$ECVS_SERVER" ]; then # ECVS_SERVER!=offline --> real fetching mode 241 elif [ -n "$ECVS_SERVER" ]; then # ECVS_SERVER!=offline --> real fetching mode
242 einfo "Fetching cvs module $ECVS_MODULE into $ECVS_TOP_DIR..." 242 einfo "Fetching cvs module $ECVS_MODULE into $ECVS_TOP_DIR..."
243 cvs_fetch 243 cvs_fetch
244 else # ECVS_SERVER not set 244 else # ECVS_SERVER not set

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20