From 19ff83173c62513ee462a503ec2a59f1995b89bb Mon Sep 17 00:00:00 2001 From: salo Date: Wed, 23 Jun 2004 11:42:18 +0000 Subject: In SUBST_SED.pkglocaledir, escape the rest of the line in the pattern. Saves trailing \ properly. Addresses PR pkg/26022 by Akio OBATA. --- mk/bsd.pkg.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index aa09050e7fa..e5f848792ff 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1469 2004/06/23 11:13:12 cjep Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1470 2004/06/23 11:42:18 salo Exp $ # # This file is in the public domain. # @@ -2123,7 +2123,7 @@ SUBST_FILES.pkglocaledir= ${_REPLACE_LOCALEDIR} SUBST_SED.pkglocaledir= \ -e 's|^\(localedir[ :]*=\).*|\1 ${_PKGLOCALEDIR}|' \ -e 's|^\(gnulocaledir[ :]*=\).*|\1 ${_PKGLOCALEDIR}|' \ - -e 's|\(-DLOCALEDIR[ ]*=\)[^ ]*\(.*\)|\1"\\"${_PKGLOCALEDIR}\\""\2|' + -e 's|\(-DLOCALEDIR[ ]*=\)[^ ]*\(\.\*\)|\1"\\"${_PKGLOCALEDIR}\\""\2|' .endif .if defined(REPLACE_PERL) -- cgit v1.2.3