2001-04-27 21:28:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2001-06-06 16:58:09 +00:00
|
|
|
# The user can override the default language to build and install
|
|
|
|
# with the RELNOTES_LANG variable.
|
2001-04-27 21:28:02 +00:00
|
|
|
#
|
2001-06-06 16:58:09 +00:00
|
|
|
.if defined(RELNOTES_LANG) && !empty(RELNOTES_LANG)
|
2004-08-03 22:12:45 +00:00
|
|
|
SUBDIR+= ${RELNOTES_LANG}
|
2001-04-27 21:28:02 +00:00
|
|
|
.else
|
2004-08-03 22:12:45 +00:00
|
|
|
SUBDIR+= en_US.ISO8859-1
|
2001-04-27 21:28:02 +00:00
|
|
|
.endif
|
2012-10-01 11:26:49 +00:00
|
|
|
SUBDIR+= share/xml
|
2001-04-27 21:28:02 +00:00
|
|
|
|
2001-04-29 21:05:12 +00:00
|
|
|
RELN_ROOT?= ${.CURDIR}
|
2001-04-27 21:28:02 +00:00
|
|
|
|
2013-12-23 21:58:03 +00:00
|
|
|
.if exists(/usr/local/bin/svn)
|
2013-05-28 23:43:47 +00:00
|
|
|
SVN?= /usr/local/bin/svn
|
2013-12-23 21:58:03 +00:00
|
|
|
.elif exists(/usr/bin/svn)
|
|
|
|
SVN?= /usr/bin/svn
|
|
|
|
.else
|
|
|
|
SVN?= /usr/bin/svnlite
|
|
|
|
.endif
|
|
|
|
|
2013-05-28 23:43:47 +00:00
|
|
|
SVNFLAGS?= -r HEAD
|
|
|
|
|
2001-04-27 21:28:02 +00:00
|
|
|
update:
|
2013-12-23 21:58:03 +00:00
|
|
|
.if !exists(${SVN})
|
2001-04-27 21:28:02 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
2013-05-28 23:43:47 +00:00
|
|
|
@echo ">>> Updating ${RELN_ROOT} requires ${SVN}."
|
2001-04-27 21:28:02 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
2013-05-28 23:43:47 +00:00
|
|
|
@exit 1
|
2013-12-23 21:58:03 +00:00
|
|
|
.endif
|
2001-04-27 21:28:02 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
2013-12-23 21:58:03 +00:00
|
|
|
@echo ">>> Updating ${.CURDIR}"
|
2001-04-27 21:28:02 +00:00
|
|
|
@echo "--------------------------------------------------------------"
|
2013-05-28 23:43:47 +00:00
|
|
|
@(cd ${.CURDIR} && ${SVN} update ${SVNFLAGS})
|
2001-04-27 21:28:02 +00:00
|
|
|
|
2001-04-29 21:05:12 +00:00
|
|
|
.include "${RELN_ROOT}/share/mk/doc.relnotes.mk"
|
2001-04-27 21:28:02 +00:00
|
|
|
.include "${DOC_PREFIX}/share/mk/doc.subdir.mk"
|