Re: Using sed in a Makefile

2009-03-07 Thread Jerry
On Sat, 7 Mar 2009 18:11:16 +0100 Johan van Selst wrote: >${..} 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. Thanks, that worked. I had tried escaping with

Re: Using sed in a Makefile

2009-03-07 Thread Johan van Selst
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

Using sed in a Makefile

2009-03-07 Thread Jerry
I have a question regarding the syntax for 'sed' in a Makefile. Using sed outside a Makefile this works fine. sed -e 's|SIG_DB=${SIG_DB:-""}|SIG_DB=${SIG_DB:-"/var/db/clamav"}|' ./a.sh sed -e 's|CONFIG_FILE=${CONFIG_FILE:-/etc/${SCRIPT_NAME}.conf}|CONFIG_FILE=${CONFIG_FILE:-/usr/local/etc/${SCRI