[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replacement of variable placeholders in files
From: |
Benoit SIGOURE |
Subject: |
Re: replacement of variable placeholders in files |
Date: |
Wed, 22 Aug 2007 13:47:14 +0200 |
On Aug 22, 2007, at 1:41 PM, Benoit SIGOURE wrote:
I think the line should be:
$(SED) -e 's,$${LOCALSTATEDIR},${localstatedir},g' $(top_srcdir)/
conf/project.conf.in >$@
As noted by Bernd Jendrissek, there should be a backslash in there:
sed -e 's,\$${LOCALSTATEDIR},${localstatedir},g' $(top_srcdir)/conf/
project.conf.in >$@
So that sed doesn't recognize `$' as `end of line'. I didn't notice
this because neither BSD sed nor GNU sed seem to consider `$' as `end
of line' if it's not actually at the end of the pattern.
Cheers,
--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
PGP.sig
Description: This is a digitally signed message part