diff options
author | Rene Ladan <rene@FreeBSD.org> | 2020-12-19 11:33:43 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2020-12-23 19:06:07 +0000 |
commit | eaf07aef5605b8be7cb473b6eb860b2f65bc4c17 (patch) | |
tree | 8d2b8c473949ebca1ef6b1c81651728b444edf32 /Makefile | |
parent | b62d4babfdbd3d9dc393c378bf6960b9d0781ada (diff) | |
download | doc-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-- | Makefile | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -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" |