# HG changeset patch # User Franz Glasner # Date 1509089270 -7200 # Node ID ba847d423427f1065e3e89a816b8e2ee904a219d # Parent e43dcd367fbf1acd615d6526a5df6ed1e35cefa9 Change the syntax of "RCS" (i.e. HG) keyword expansion to make it SCM keyword compatible diff -r e43dcd367fbf -r ba847d423427 Makefile --- 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 diff -r e43dcd367fbf -r ba847d423427 bin/check-ports --- 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@@