aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2020-12-19 11:33:43 +0000
committerRene Ladan <rene@FreeBSD.org>2020-12-23 19:06:07 +0000
commiteaf07aef5605b8be7cb473b6eb860b2f65bc4c17 (patch)
tree8d2b8c473949ebca1ef6b1c81651728b444edf32 /Makefile
parentb62d4babfdbd3d9dc393c378bf6960b9d0781ada (diff)
downloaddoc-eaf07aef5605b8be7cb473b6eb860b2f65bc4c17.tar.gz
doc-eaf07aef5605b8be7cb473b6eb860b2f65bc4c17.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index a5cd379b0b..0ba06ce4e6 100644
--- a/Makefile
+++ b/Makefile
@@ -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"