Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Mar 2009 18:11:16 +0100
From:      Johan van Selst <johans@stack.nl>
To:        freebsd-ports@freebsd.org
Subject:   Re: Using sed in a Makefile
Message-ID:  <20090307171115.GA21225@mud.stack.nl>
In-Reply-To: <20090307111040.2a00be66@scorpio>
References:  <20090307111040.2a00be66@scorpio>

next in thread | previous in thread | raw e-mail | index | archive | help

--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--+QahgC5+KEYLbs62
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iEYEAREIAAYFAkmyqrMACgkQaOElK32lxTuQbQCgslr0U67e+tmqypc7zIbHSqZU
534An0SRZ4YDUp0nLApbUzsa3KBYclA/
=8HUW
-----END PGP SIGNATURE-----

--+QahgC5+KEYLbs62--



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