summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>2004-08-24 23:12:16 +0000
committerpaul <paul@FreeBSD.org>2004-08-24 23:12:16 +0000
commit45f2fab860ea35c0f86b4d8b6b77cc58a72098be (patch)
tree394efaba2ee3ba08fb10518dea707c648463a48f
parenta3a1f70ff470ddb997b249915f05fb002591e730 (diff)
downloadFreeBSD-src-45f2fab860ea35c0f86b4d8b6b77cc58a72098be.zip
FreeBSD-src-45f2fab860ea35c0f86b4d8b6b77cc58a72098be.tar.gz
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.
-rw-r--r--Makefile.inc16
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 3d79218..70a6517 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -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
#
OpenPOWER on IntegriCloud