changeset 385:d058f55fffea

Expand some keyword in the mail manual page also
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 22 Feb 2023 21:23:50 +0100
parents 3c214808f2c7
children 84d2735fe7f6
files Makefile docs/man/man8/local-bsdtools.rst
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Feb 20 08:50:20 2023 +0100
+++ b/Makefile	Wed Feb 22 21:23:50 2023 +0100
@@ -64,6 +64,11 @@
 post-extract-DOCS-on:
 	${MKDIR} ${WRKSRC}/docs
 	(${TAR} -C ${.CURDIR}/docs -c --exclude ./_build -f - . | ${TAR} -C ${WRKSRC}/docs -x -f - )
+.for _mp in man/man8/local-bsdtools.rst
+	${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/docs/${_mp}
+	${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/docs/${_mp}
+	${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/docs/${_mp} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/docs/${_mp}
+.endfor
 
 .if ${PORT_OPTIONS:MDOCS}
 do-build:
--- a/docs/man/man8/local-bsdtools.rst	Mon Feb 20 08:50:20 2023 +0100
+++ b/docs/man/man8/local-bsdtools.rst	Wed Feb 22 21:23:50 2023 +0100
@@ -71,3 +71,10 @@
 Because the tools use different helper tools like :command:`zfs` or
 :command:`pkg` the relevant environment variables according to this tools
 also do apply generally.
+
+
+History
+-------
+
+:Version: @(#)@@PKGORIGIN@@ v@@VERSION@@
+:ID:      $HGid$