mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Remove references to SUP_UPDATE and CVS_UPDATE.
Include base svn when evaluating if svn(1) exists. MFC after: 3-days X-MFC-to: stable/10 only Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
34a5ebdef1
commit
688e932b26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259792
@ -12,31 +12,27 @@ SUBDIR+= share/xml
|
||||
|
||||
RELN_ROOT?= ${.CURDIR}
|
||||
|
||||
.if exists(/usr/local/bin/svn)
|
||||
SVN?= /usr/local/bin/svn
|
||||
.elif exists(/usr/bin/svn)
|
||||
SVN?= /usr/bin/svn
|
||||
.else
|
||||
SVN?= /usr/bin/svnlite
|
||||
.endif
|
||||
|
||||
SVNFLAGS?= -r HEAD
|
||||
|
||||
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})
|
||||
.if !exists(${SVN})
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo ">>> Updating ${RELN_ROOT} requires ${SVN}."
|
||||
@echo "--------------------------------------------------------------"
|
||||
@exit 1
|
||||
. endif
|
||||
.endif
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo ">>> Updating ${.CURDIR} using Subversion"
|
||||
@echo ">>> Updating ${.CURDIR}"
|
||||
@echo "--------------------------------------------------------------"
|
||||
@(cd ${.CURDIR} && ${SVN} update ${SVNFLAGS})
|
||||
.else
|
||||
@echo "Error: Please define SVN_UPDATE first."
|
||||
.endif
|
||||
|
||||
.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
|
||||
.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"
|
||||
|
Loading…
Reference in New Issue
Block a user