Replace escaping for exported vars with :Q feature.

With hat:	portmgr
This commit is contained in:
Bryan Drewery 2015-10-12 21:38:28 +00:00
parent ac1cb7e914
commit 1289b5e043
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399153

View File

@ -5052,10 +5052,10 @@ ${_t}:
.if !defined(NOPRECIOUSMAKEVARS)
# These won't change, so we can pass them through the environment
.MAKEFLAGS: \
ARCH="${ARCH:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
OPSYS="${OPSYS:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
OSREL="${OSREL:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}" \
OSVERSION="${OSVERSION:S/"/"'"'"/g:S/\$/\$\$/g:S/\\/\\\\/g}"
ARCH=${ARCH:Q} \
OPSYS=${OPSYS:Q} \
OSREL=${OSREL:Q} \
OSVERSION=${OSVERSION:Q}
.endif
.if !target(pre-check-config)