| 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.2 2002/07/17 21:14:56 danarmak Exp $ |
4 | # $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.3 2002/07/18 14:07:15 danarmak Exp $ |
| 5 | # This eclass provides the generic cvs fetching functions. |
5 | # This eclass provides the generic cvs fetching functions. |
| 6 | |
6 | |
| 7 | ECLASS=cvs |
7 | ECLASS=cvs |
| 8 | INHERITED="$INHERITED $ECLASS" |
8 | INHERITED="$INHERITED $ECLASS" |
| 9 | |
9 | |
| … | |
… | |
| 57 | cvs_fetch() { |
57 | cvs_fetch() { |
| 58 | |
58 | |
| 59 | debug-print-function $FUNCNAME $* |
59 | debug-print-function $FUNCNAME $* |
| 60 | |
60 | |
| 61 | # disable the sandbox for this dir |
61 | # disable the sandbox for this dir |
| 62 | [ ! -d "$ECVS_TOP_DIR" ] && mkdir -p $ECVS_TOP_DIR |
62 | if [ ! -d "$ECVS_TOP_DIR" ]; then |
|
|
63 | addwrite $ECVS_TOP_DIR/.. |
|
|
64 | mkdir -p $ECVS_TOP_DIR |
|
|
65 | adddeny $ECVS_TOP_DIR/.. |
|
|
66 | fi |
| 63 | addread ${ECVS_TOP_DIR} |
67 | addread ${ECVS_TOP_DIR} |
| 64 | addwrite ${ECVS_TOP_DIR} |
68 | addwrite ${ECVS_TOP_DIR} |
| 65 | |
69 | |
| 66 | # prepare a cvspass file just for this session so that cvs thinks we're logged |
70 | # prepare a cvspass file just for this session so that cvs thinks we're logged |
| 67 | # in at the cvs server. we don't want to mess with ~/.cvspass. |
71 | # in at the cvs server. we don't want to mess with ~/.cvspass. |