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

Diff of /eclass/cvs.eclass

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

Revision 1.14 Revision 1.15
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.14 2002/09/08 16:17:15 danarmak Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.15 2002/09/08 21:21:06 azarah 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
79DIR=$DIR" 79DIR=$DIR"
80 80
81 # if ECVS_TOP_DIR is a symlink to a dir, get the real dir's path, 81 # if ECVS_TOP_DIR is a symlink to a dir, get the real dir's path,
82 # otherwise addwrite() doesn't work 82 # otherwise addwrite() doesn't work
83 if [ -n "$ECVS_TOP_DIR" ]; then 83 if [ -n "$ECVS_TOP_DIR" ]; then
84 # create $ECVS_TOP_DIR if missing
85 [ ! -d $ECVS_TOP_DIR -a ! -L $ECVS_TOP_DIR ] && mkdir -p $ECVS_TOP_DIR
84 cd -P $ECVS_TOP_DIR 86 cd -P $ECVS_TOP_DIR
85 ECVS_TOP_DIR="`pwd`" 87 ECVS_TOP_DIR="`pwd`"
86 cd $OLDPWD 88 cd $OLDPWD
87 fi 89 fi
88 90

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20