svn commit: r568965 - head/Mk
Mathieu Arnold
mat at FreeBSD.org
Mon Mar 22 15:13:49 UTC 2021
Author: mat
Date: Mon Mar 22 15:13:49 2021
New Revision: 568965
URL: https://svnweb.freebsd.org/changeset/ports/568965
Log:
Don't use an escape sequence when you can use a character class.
Using an escape sequence is more likely to get munged at some point
while going through from make to sh to sed.
Modified:
head/Mk/bsd.port.mk (contents, props changed)
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Mon Mar 22 15:07:49 2021 (r568964)
+++ head/Mk/bsd.port.mk Mon Mar 22 15:13:49 2021 (r568965)
@@ -1761,7 +1761,7 @@ PLIST_SUB_SED_tmp2= ${PLIST_SUB_SED_tmp1:NEXTRACT_SUFX
PLIST_SUB_SED_tmp3?= ${PLIST_SUB_SED_tmp2:C/(${PLIST_SUB:M*_regex=*:C/_regex=.*/=.*/:Q:S/\\ /|/g:S/\\//g})//:C/(.*)_regex=(.*)/\1=\2/}
# Remove quotes
# Replace . with \. for later sed(1) usage
-PLIST_SUB_SED?= ${PLIST_SUB_SED_tmp3:C/([^=]*)="?([^"]*)"?/s!\2!%%\1%%!g;/g:C/\./\\./g}
+PLIST_SUB_SED?= ${PLIST_SUB_SED_tmp3:C/([^=]*)="?([^"]*)"?/s!\2!%%\1%%!g;/g:C/\./[.]/g}
# kludge to strip trailing whitespace from CFLAGS;
# sub-configure will not # survive double space
More information about the svn-ports-head
mailing list