Using sed in a Makefile

Johan van Selst johans at stack.nl
Sat Mar 7 09:11:19 PST 2009


Jerry wrote:
> @${REINPLACE_CMD} -e 's|CONFIG_FILE=${CONFIG_FILE:-/etc/${SCRIPT_NAME}.conf}|CONFIG_FILE=${CONFIG_FILE:-/usr/local/etc/${SCRIPT_NAME}.conf}|g' ${WRKSRC}/${PORTNAME}.sh
> 	
> 	Syntax error: Unterminated quoted string

${..} will be interpreted by make - even when it is used between '..'
which is probably not what you want here. If you want to use a litteral
$-sign in your command, use $$ in the Makefile.


Ciao,
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090307/4a23e10e/attachment.pgp


More information about the freebsd-ports mailing list