Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2021 15:13:49 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568965 - head/Mk
Message-ID:  <202103221513.12MFDnuC014100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103221513.12MFDnuC014100>