Add a CVSTAG makefile variable that can be set in /etc/make.conf that

determines which CVS tag to track when running make update. This makes
it easier to configure a box to track a particular release if it does
automated updates from a cvs repository.
This commit is contained in:
Paul Richards 2004-08-24 23:12:16 +00:00
parent 4d855643d1
commit e88261150a

View File

@ -83,6 +83,10 @@ CLEANDIR= cleandir
.endif
CVS?= cvs
CVSFLAGS?= -A -P -d
.if defined(CVSTAG)
CVSFLAGS+= -r ${CVSTAG}
.endif
SUP?= /usr/local/bin/cvsup
SUPFLAGS?= -g -L 2 -P -
.if defined(SUPHOST)
@ -655,7 +659,7 @@ update:
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${CVS} -R -q update -A -P -d
cd ${.CURDIR}; ${CVS} -R -q update ${CVSFLAGS}
.endif
#