| 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.47 2003/09/28 17:08:35 coredumb Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.48 2003/09/28 17:19:43 coredumb 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> |
| … | |
… | |
| 79 | #[ -z "$ECVS_BRANCH" ] && ECVS_BRANCH="HEAD" |
79 | #[ -z "$ECVS_BRANCH" ] && ECVS_BRANCH="HEAD" |
| 80 | |
80 | |
| 81 | # deprecated - do not use |
81 | # deprecated - do not use |
| 82 | [ -n "$ECVS_SUBDIR" ] && die "ERROR: deprecated ECVS_SUBDIR defined. Please fix this ebuild." |
82 | [ -n "$ECVS_SUBDIR" ] && die "ERROR: deprecated ECVS_SUBDIR defined. Please fix this ebuild." |
| 83 | |
83 | |
|
|
84 | # ECVS_CLEAN: set this to something to get a clean copy when updating (passes the -C option to cvs update) |
|
|
85 | |
| 84 | # --- end ebuild-configurable settings --- |
86 | # --- end ebuild-configurable settings --- |
| 85 | |
87 | |
| 86 | # add cvs to deps |
88 | # add cvs to deps |
| 87 | # ssh is used for ext auth |
89 | # ssh is used for ext auth |
| 88 | # sudo is used to run as a specified user |
90 | # sudo is used to run as a specified user |
| … | |
… | |
| 122 | |
124 | |
| 123 | if [ "$ECVS_LOCALNAME" != "$ECVS_MODULE" ]; then |
125 | if [ "$ECVS_LOCALNAME" != "$ECVS_MODULE" ]; then |
| 124 | # the option to cvs on which this is based. note this isn't the same as the |
126 | # the option to cvs on which this is based. note this isn't the same as the |
| 125 | # global -d option to cvs, which specifies the cvs server. ugh @ cvs syntax. |
127 | # global -d option to cvs, which specifies the cvs server. ugh @ cvs syntax. |
| 126 | ECVS_CO_OPTS="$ECVS_CO_OPTS -d $ECVS_LOCALNAME" |
128 | ECVS_CO_OPTS="$ECVS_CO_OPTS -d $ECVS_LOCALNAME" |
|
|
129 | fi |
|
|
130 | |
|
|
131 | if [ -n "$ECVS_CLEAN" ]; then |
|
|
132 | ECVS_UP_OPTS="$ECVS_UP_OPTS -C" |
| 127 | fi |
133 | fi |
| 128 | |
134 | |
| 129 | # it's easiest to always be in "run-as mode", logic-wise |
135 | # it's easiest to always be in "run-as mode", logic-wise |
| 130 | # or would be if sudo didn't ask for a password even when sudo'ing to `whoami` |
136 | # or would be if sudo didn't ask for a password even when sudo'ing to `whoami` |
| 131 | if [ -z "$ECVS_RUNAS" ]; then |
137 | if [ -z "$ECVS_RUNAS" ]; then |