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

Diff of /eclass/cvs.eclass

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

Revision 1.52 Revision 1.53
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/cvs.eclass,v 1.52 2004/09/28 06:18:06 fafhrd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.53 2004/10/19 19:51:12 vapier Exp $
4 4
5# Current Maintainer: Tal Peer <coredumb@gentoo.org> 5# Current Maintainer: Tal Peer <coredumb@gentoo.org>
6# Original Author: Dan Armak <danarmak@gentoo.org> 6# Original Author: Dan Armak <danarmak@gentoo.org>
7 7
8# SSH auth code by Danny <danny.milo@gmx.net> 8# SSH auth code by Danny <danny.milo@gmx.net>
291 if [ "$server" != "$oldserver" ]; then 291 if [ "$server" != "$oldserver" ]; then
292 292
293 einfo "Changing the CVS server from $oldserver to $server:" 293 einfo "Changing the CVS server from $oldserver to $server:"
294 debug-print "$FUNCNAME: Changing the CVS server from $oldserver to $server:" 294 debug-print "$FUNCNAME: Changing the CVS server from $oldserver to $server:"
295 295
296 einfo "Searching for CVS directories..." 296 einfo "Searching for CVS directories ..."
297 local cvsdirs="`$run find . -iname CVS -print`" 297 local cvsdirs="`$run find . -iname CVS -print`"
298 debug-print "$FUNCNAME: CVS directories found:" 298 debug-print "$FUNCNAME: CVS directories found:"
299 debug-print "$cvsdirs" 299 debug-print "$cvsdirs"
300 300
301 einfo "Modifying CVS directories..." 301 einfo "Modifying CVS directories ..."
302 for x in $cvsdirs; do 302 for x in $cvsdirs; do
303 debug-print "In $x" 303 debug-print "In $x"
304 $run echo "$server" > "$x/Root" 304 $run echo "$server" > "$x/Root"
305 done 305 done
306 306
503 else 503 else
504 debug-print "$FUNCNAME: Offline mode specified but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found, exiting with error" 504 debug-print "$FUNCNAME: Offline mode specified but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found, exiting with error"
505 die "ERROR: Offline mode specified, but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found. Aborting." 505 die "ERROR: Offline mode specified, but directory ${ECVS_TOP_DIR}/${ECVS_LOCALNAME} not found. Aborting."
506 fi 506 fi
507 elif [ -n "$ECVS_SERVER" ]; then # ECVS_SERVER!=offline --> real fetching mode 507 elif [ -n "$ECVS_SERVER" ]; then # ECVS_SERVER!=offline --> real fetching mode
508 einfo "Fetching CVS module $ECVS_MODULE into $ECVS_TOP_DIR..." 508 einfo "Fetching CVS module $ECVS_MODULE into $ECVS_TOP_DIR ..."
509 cvs_fetch 509 cvs_fetch
510 else # ECVS_SERVER not set 510 else # ECVS_SERVER not set
511 die "ERROR: CVS server not specified, cannot continue." 511 die "ERROR: CVS server not specified, cannot continue."
512 fi 512 fi
513 513
514 einfo "Copying $ECVS_MODULE from $ECVS_TOP_DIR..." 514 einfo "Copying $ECVS_MODULE from $ECVS_TOP_DIR ..."
515 debug-print "Copying module $ECVS_MODULE local_mode=$ECVS_LOCAL from $ECVS_TOP_DIR..." 515 debug-print "Copying module $ECVS_MODULE local_mode=$ECVS_LOCAL from $ECVS_TOP_DIR ..."
516 516
517 # This is probably redundant, but best to make sure. 517 # This is probably redundant, but best to make sure.
518 mkdir -p "$WORKDIR/$ECVS_LOCALNAME" 518 mkdir -p "$WORKDIR/$ECVS_LOCALNAME"
519 519
520 if [ -n "$ECVS_LOCAL" ]; then 520 if [ -n "$ECVS_LOCAL" ]; then

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20