diff options
author | Bill Fenner <fenner@FreeBSD.org> | 2002-06-20 16:03:52 +0000 |
---|---|---|
committer | Bill Fenner <fenner@FreeBSD.org> | 2002-06-20 16:03:52 +0000 |
commit | 9ea295483d9228ddb7463bed43545b12424ac55e (patch) | |
tree | 46fb0216469a337732881549004227978ef4639b /misc/libh/Makefile | |
parent | Upgrade to 2.3.20020620. (diff) |
Use a local cvspass file which is already logged in to the CVS server;
this eliminates the interactive step of logging in and possible
permission problems with ~/.cvspass .
Diffstat (limited to 'misc/libh/Makefile')
-rw-r--r-- | misc/libh/Makefile | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/misc/libh/Makefile b/misc/libh/Makefile index c046527030ed..c9ec09c529fa 100644 --- a/misc/libh/Makefile +++ b/misc/libh/Makefile @@ -59,22 +59,11 @@ do-fetch: if [ -n "${PORTS_CVS_SERVER}" ]; then \ export CVS_SERVER="${PORTS_CVS_SERVER}"; \ fi; \ + export CVS_PASSFILE="${FILESDIR}/cvspass"; \ ${MKDIR} ${DISTDIR}/${PKGNAME} && \ cd ${DISTDIR}/${PKGNAME}; \ for CVS_SITE in ${CVS_SITES}; do \ ${ECHO_MSG} ">> Attempting to CVS cvs checkout from $${CVS_SITE}."; \ - case "$${CVS_SITE}" in \ - :pserver:*) \ - CVS_LOGIN=yes; \ - ;; \ - *) \ - CVS_LOGIN=no; \ - ;; \ - esac; \ - if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \ - ${ECHO_MSG} ">> *** Please hit enter here for the password."; \ - ${CVS_CMD} -d $${CVS_SITE} login < /dev/null; \ - fi ; \ if ${CVS_CMD} -d $${CVS_SITE} co -r '${CVS_TAG}' ${PORTNAME}; then \ if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \ ${CVS_CMD} -d $${CVS_SITE} logout < /dev/null; \ @@ -83,9 +72,6 @@ do-fetch: ${ECHO_MSG} ">> CVS checkout successful." ;\ exit; \ fi ;\ - if [ "X$${CVS_LOGIN}" = "Xyes" ]; then \ - ${CVS_CMD} -d $${CVS_SITE} logout < /dev/null; \ - fi; \ done; \ ${ECHO_MSG} ">> Couldn't CVS checkout ${PORTNAME}." ;\ exit 1; \ |