1
0
mirror of https://git.FreeBSD.org/doc.git synced 2026-06-02 19:35:07 +00:00

Update the build infrastructure to use Git instead of Subversion

Summary:
The doc repository is not mirrored to Subversion so updating the
repository from Subversion does not make sense. Remove
Subversion-specific files too.

While here remove now defunct $FreeBSD$ markers in affected files.

Test Plan:
make clean
make update
make

Reviewed by:	bcr, ygy, doceng (gjb)
Differential Revision: https://reviews.freebsd.org/D27678
Subscribers:	drewery, emaste
This commit is contained in:
Rene Ladan
2020-12-19 12:33:43 +01:00
parent b62d4babfd
commit eaf07aef56
4 changed files with 8 additions and 109 deletions
+5 -13
View File
@@ -1,5 +1,3 @@
# $FreeBSD$
#
# The user can override the default list of languages to build and install
# with the DOC_LANG variable.
#
@@ -35,25 +33,19 @@ SUBDIR+= share
DOC_PREFIX?= ${.CURDIR}
.if exists(/usr/bin/svnlite)
SVN?= /usr/bin/svnlite
.elif exists(/usr/bin/svn)
SVN?= /usr/bin/svn
.else
SVN?= /usr/local/bin/svn
.endif
GIT?= /usr/local/bin/git
update:
.if !exists(${SVN})
.if !exists(${GIT})
@${ECHODIR} "--------------------------------------------------------------"
@${ECHODIR} ">>> ${SVN} is required to update ${.CURDIR}"
@${ECHODIR} ">>> ${GIT} is required to update ${.CURDIR}"
@${ECHODIR} "--------------------------------------------------------------"
@${EXIT}
.else
@${ECHODIR} "--------------------------------------------------------------"
@${ECHODIR} ">>> Updating ${.CURDIR} from svn repository"
@${ECHODIR} ">>> Updating ${.CURDIR} from git repository"
@${ECHODIR} "--------------------------------------------------------------"
cd ${.CURDIR}; ${SVN} update
cd ${.CURDIR}; ${GIT} pull --ff-only
.endif
.include "${DOC_PREFIX}/share/mk/doc.project.mk"