changeset 17:089afc4908c0

Expand @@VERSION@@ with the package version also
author Franz Glasner <hg@dom66.de>
date Fri, 27 Oct 2017 09:04:29 +0200
parents 08fc189baf67
children b490ec9eeffe
files Makefile bin/check-ports
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Oct 27 02:23:22 2017 +0200
+++ b/Makefile	Fri Oct 27 09:04:29 2017 +0200
@@ -31,6 +31,7 @@
 	${SED} -i "" -e "s|@@HGREVISION@@|\$$HGrevision: ${HGREVISION} \$$|" ${WRKSRC}/bin/${_f}
 	${SED} -i "" -e "s|@@HGROOT@@|\$$HGroot: ${HGROOT} \$$|" ${WRKSRC}/bin/${_f}
 	${SED} -i "" -e "s|@@HGSOURCE@@|\$$HGsource: ${HGPATH}/bin/${_f} \$$|" ${WRKSRC}/bin/${_f}
+	${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/bin/${_f}
 .endfor
 
 do-install:
--- a/bin/check-ports	Fri Oct 27 02:23:22 2017 +0200
+++ b/bin/check-ports	Fri Oct 27 09:04:29 2017 +0200
@@ -3,6 +3,8 @@
 # @@HGSOURCE@@ @@HGREVISION@@
 #
 
+VERSION=@@VERSION@@
+
 #
 # Local repository with
 # non-public packages and/or ports with changed OPTIONS (i.e. not using the