From 01f01019ea45da28000aa2b5e37c1938555fadd9 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sun, 19 Sep 1999 09:39:23 +0000 Subject: [PATCH] Add a new variable CVS_READONLY for read-only check outs. The default value is YES. If your cvs command does not support read-only check outs (global cvs option -R), set CVS_READONLY to an empty value, e.g.: $ make CVS_READONLY="" all --- en/ports/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/en/ports/Makefile b/en/ports/Makefile index 6b10abc5c3..8d2c661431 100644 --- a/en/ports/Makefile +++ b/en/ports/Makefile @@ -1,4 +1,4 @@ -# $FreeBSD$ +# $FreeBSD: www/en/ports/Makefile,v 1.25 1999/09/06 07:02:48 peter Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" @@ -7,6 +7,13 @@ .include "Makefile.inc" .endif +CVS_READONLY?= YES +CVS_OPT+= -Q +.if !empty(CVS_READONLY) +CVS_OPT+= -R +.endif + + .if defined(NOPORTSCVS) ${INDEX}: $${PORTSBASE}/${PINDEX} @@ -17,10 +24,10 @@ ${Y2K}: $${PORTSBASE}/${PY2K} .else ${INDEX}: ${cvsindex} - cvs -QR co -p ${PINDEX} > ${INDEX} + cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX} ${Y2K}: ${cvsy2k} - cvs -QR co -p ${PY2K} > ${Y2K} + cvs ${CVS_OPT} co -p ${PY2K} > ${Y2K} .endif