176082Sbmah# $FreeBSD$
276082Sbmah#
377819Sbmah# The user can override the default language to build and install
477819Sbmah# with the RELNOTES_LANG variable.
576082Sbmah# 
677819Sbmah.if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
7133094SsimonSUBDIR+= 	${RELNOTES_LANG}
876082Sbmah.else
9133094SsimonSUBDIR+=	en_US.ISO8859-1
1076082Sbmah.endif
11241122SgaborSUBDIR+=	share/xml
1276082Sbmah
1376140SddRELN_ROOT?= ${.CURDIR}
1476082Sbmah
15252305SgjbSVN?=		/usr/local/bin/svn
16252305SgjbSVNFLAGS?=	-r HEAD
17252305Sgjb
1876082Sbmahupdate:
19252305Sgjb.if (defined(CVS_UPDATE) || defined(SUP_UPDATE)) && !defined(SVN_UPDATE)
20252305Sgjb	@echo "--------------------------------------------------------------"
21252305Sgjb	@echo "CVS_UPDATE and SUP_UPDATE are no longer supported."
22252305Sgjb	@echo "Please see: https://wiki.freebsd.org/CvsIsDeprecated"
23252305Sgjb	@echo "--------------------------------------------------------------"
2476082Sbmah	@exit 1
2576082Sbmah.endif
26252305Sgjb.if defined(SVN_UPDATE)
27252305Sgjb. if !exists(${SVN})
2876082Sbmah	@echo "--------------------------------------------------------------"
29252305Sgjb	@echo ">>> Updating ${RELN_ROOT} requires ${SVN}."
3076082Sbmah	@echo "--------------------------------------------------------------"
31252305Sgjb	@exit 1
32252305Sgjb. endif
3376082Sbmah	@echo "--------------------------------------------------------------"
34252305Sgjb	@echo ">>> Updating ${.CURDIR} using Subversion"
3576082Sbmah	@echo "--------------------------------------------------------------"
36252305Sgjb	@(cd ${.CURDIR} && ${SVN} update ${SVNFLAGS})
3776082Sbmah.else
38252305Sgjb	@echo "Error: Please define SVN_UPDATE first."
3976082Sbmah.endif
4076082Sbmah
4176140Sdd.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
4276082Sbmah.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"
43