Date: Sun, 12 Dec 1999 18:02:42 +0100 (CET) From: Christian Weisgerber <naddy@mips.rhein-neckar.de> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/15439: Add update target to doc/Makefile Message-ID: <199912121702.SAA37226@bigeye.rhein-neckar.de>
index | next in thread | raw e-mail
>Number: 15439
>Category: docs
>Synopsis: Add update target to doc/Makefile
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 12 09:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Christian Weisgerber
>Release: FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:
>Description:
Both the src and ports trees support a make target "update" which
updates the respective tree by CVSup or CVS to the latest version.
Configuration is typically provided through /etc/make.conf.
The patch below adds this capability to the top level Makefile of
the doc tree. The code is cribbed from {src,ports}/Makefile.
>How-To-Repeat:
n/a
>Fix:
--- doc/Makefile.orig Sun Dec 12 17:34:01 1999
+++ doc/Makefile Sun Dec 12 17:48:24 1999
@@ -14,4 +14,24 @@
.endif
DOC_PREFIX?= ${.CURDIR}
+
+update:
+.if defined(SUP_UPDATE)
+.if !defined(DOCSUPFILE)
+ @echo "Error: Please define DOCSUPFILE before doing make update."
+ @exit 1
+.endif
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Running ${SUP}"
+ @echo "--------------------------------------------------------------"
+ @${SUP} ${SUPFLAGS} ${DOCSUPFILE}
+.elif defined(CVS_UPDATE)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}; cvs -q update -P -d
+.else
+ @echo "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
+.endif
+
.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"
--- src/etc/defaults/make.conf.orig Sun Dec 12 17:41:23 1999
+++ src/etc/defaults/make.conf Sun Dec 12 17:42:11 1999
@@ -185,6 +185,7 @@
#SUPFILE= /usr/share/examples/cvsup/standard-supfile
#SUPFILE1= /usr/share/examples/cvsup/secure-supfile
#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
+#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile
#
# top(1) uses a hash table for the user names. The size of this hash
# can be tuned to match the number of local users. The table size should
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912121702.SAA37226>
