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

Diff of /eclass/cvs.eclass

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

Revision 1.18 Revision 1.19
1# Copyright 1999-2000 Gentoo Technologies, Inc. 1# Copyright 1999-2000 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Dan Armak <danarmak@gentoo.org> 3# Author Dan Armak <danarmak@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.18 2002/09/15 14:15:54 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.19 2002/09/16 14:44:20 danarmak Exp $
5# This eclass provides the generic cvs fetching functions. 5# This eclass provides the generic cvs fetching functions.
6 6
7ECLASS=cvs 7ECLASS=cvs
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
9 9
204cvs_src_unpack() { 204cvs_src_unpack() {
205 205
206 debug-print-function $FUNCNAME $* 206 debug-print-function $FUNCNAME $*
207 cvs_fetch || die "died running cvs_fetch" 207 cvs_fetch || die "died running cvs_fetch"
208 208
209 einfo "Copying module $ECVS_MODULE from $ECVS_TOP_DIR..." 209 einfo "Copying $ECVS_MODULE/$ECVS_SUBDIR from $ECVS_TOP_DIR..."
210 debug-print "Copying module $ECVS_MODULE from $ECVS_TOP_DIR..." 210 debug-print "Copying module $ECVS_MODULE subdir $ECVS_SUBDIR local_mode=$ECVS_LOCAL from $ECVS_TOP_DIR..."
211
212 # probably redundant, but best to make sure
213 mkdir -p $WORKDIR/$ECVS_MODULE/$ECVS_SUBDIR
211 214
212 if [ -n "$ECVS_SUBDIR" ]; then 215 if [ -n "$ECVS_SUBDIR" ]; then
213 mkdir -p $WORKDIR/$ECVS_MODULE/$ECVS_SUBDIR 216 if [ -n "$ECVS_LOCAL" ]; then
214 cp -Rf $ECVS_TOP_DIR/$ECVS_MODULE/$ECVS_SUBDIR/* $WORKDIR/$ECVS_MODULE/$ECVS_SUBDIR/ 217 cp -f $ECVS_TOP_DIR/$ECVS_MODULE/$ECVS_SUBDIR/* $WORKDIR/$ECVS_MODULE/$ECVS_SUBDIR
218 else
219 cp -Rf $ECVS_TOP_DIR/$ECVS_MODULE/$ECVS_SUBDIR $WORKDIR/$ECVS_MODULE
220 fi
215 else 221 else
216 if [ -n "$ECVS_LOCAL" ]; then 222 if [ -n "$ECVS_LOCAL" ]; then
217 cp -f $ECVS_TOP_DIR/$ECVS_MODULE/* $WORKDIR/$ECVS_MODULE 223 cp -f $ECVS_TOP_DIR/$ECVS_MODULE/* $WORKDIR/$ECVS_MODULE
218 else 224 else
219 cp -Rf $ECVS_TOP_DIR/$ECVS_MODULE $WORKDIR 225 cp -Rf $ECVS_TOP_DIR/$ECVS_MODULE $WORKDIR
220 fi 226 fi
221 fi 227 fi
222 228
223 # if the directory is empty, remove it; empty directories cannot exist in cvs. 229 # if the directory is empty, remove it; empty directories cannot exist in cvs.
224 # this happens when fex. kde-source requests module/doc/subdir which doesn't exist. 230 # this happens when fex. kde-source requests module/doc/subdir which doesn't exist.
225 # still create the empty directory in workdir though. 231 # still create the empty directory in workdir though.

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20