changeset 20:ba847d423427

Change the syntax of "RCS" (i.e. HG) keyword expansion to make it SCM keyword compatible
author Franz Glasner <hg@dom66.de>
date Fri, 27 Oct 2017 09:27:50 +0200
parents e43dcd367fbf
children 441e007426e7
files Makefile bin/check-ports
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Oct 27 09:14:37 2017 +0200
+++ b/Makefile	Fri Oct 27 09:27:50 2017 +0200
@@ -28,9 +28,9 @@
 	${MKDIR} ${WRKSRC}/bin
 	${CP} -R -v ${SRC}/bin/ ${WRKSRC}/bin
 .for _f in check-ports
-	${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 -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
 
--- a/bin/check-ports	Fri Oct 27 09:14:37 2017 +0200
+++ b/bin/check-ports	Fri Oct 27 09:27:50 2017 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# @@HGSOURCE@@ @@HGREVISION@@
+# $HGsource$ $HGrevision$
 #
 
 VERSION=@@VERSION@@