diff options
author | gjb <gjb@FreeBSD.org> | 2013-05-28 23:43:47 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2013-05-28 23:43:47 +0000 |
commit | 515cfc581f5da6c19dc7b6ec3f1288261484433d (patch) | |
tree | b4fcd248220bd7214e5da9b03abf8b37a2cdd8a4 /release | |
parent | ff1318447efdbf5c227a3d8014aceb70bcf09cc5 (diff) | |
download | FreeBSD-src-515cfc581f5da6c19dc7b6ec3f1288261484433d.zip FreeBSD-src-515cfc581f5da6c19dc7b6ec3f1288261484433d.tar.gz |
r245757 introduced warning output if update method is set to CVS_UPDATE
or SUP_UPDATE.
CVS exporter for head/ is turned off for nearly one month now.
It is finally time to swing the ax at these update methods.
Reviewed by: eadler
MFC after: 1 month
Diffstat (limited to 'release')
-rw-r--r-- | release/doc/Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/release/doc/Makefile b/release/doc/Makefile index 18d4d8f..5b0542c 100644 --- a/release/doc/Makefile +++ b/release/doc/Makefile @@ -12,26 +12,30 @@ SUBDIR+= share/xml RELN_ROOT?= ${.CURDIR} -.if defined(SUPHOST) -SUPFLAGS+= -h ${SUPHOST} -.endif +SVN?= /usr/local/bin/svn +SVNFLAGS?= -r HEAD + update: -.if defined(SUP_UPDATE) -.if !defined(DOCSUPFILE) - @echo "Error: Please define DOCSUPFILE before doing make update." +.if (defined(CVS_UPDATE) || defined(SUP_UPDATE)) && !defined(SVN_UPDATE) + @echo "--------------------------------------------------------------" + @echo "CVS_UPDATE and SUP_UPDATE are no longer supported." + @echo "Please see: https://wiki.freebsd.org/CvsIsDeprecated" + @echo "--------------------------------------------------------------" @exit 1 .endif +.if defined(SVN_UPDATE) +. if !exists(${SVN}) @echo "--------------------------------------------------------------" - @echo ">>> Running ${SUP}" + @echo ">>> Updating ${RELN_ROOT} requires ${SVN}." @echo "--------------------------------------------------------------" - @${SUP} ${SUPFLAGS} ${DOCSUPFILE} -.elif defined(CVS_UPDATE) + @exit 1 +. endif @echo "--------------------------------------------------------------" - @echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT} + @echo ">>> Updating ${.CURDIR} using Subversion" @echo "--------------------------------------------------------------" - cd ${.CURDIR}; cvs -q update -P -d + @(cd ${.CURDIR} && ${SVN} update ${SVNFLAGS}) .else - @echo "Error: Please define either SUP_UPDATE or CVS_UPDATE first." + @echo "Error: Please define SUP_UPDATE first." .endif .include "${RELN_ROOT}/share/mk/doc.relnotes.mk" |