Re: replacement of variable placeholders in files

2007-08-22 Thread Dizzy
On Wednesday 22 August 2007 14:41:46 you wrote: > > AC_CONFIG_FILES([project.conf > > Makefile > > subdir/Makefile]) > > That doesn't always work for several reasons. First off, people > happen to this frequently to pass path information around. Paths are > mostly always defined in term o

Re: replacement of variable placeholders in files

2007-08-22 Thread Ralf Wildenhues
Hello, > On Aug 22, 2007, at 12:23 PM, Jason Curl wrote: >>> >>> project.conf:project.conf.in $(top_builddir)/config.status >>> $(SED) -e '[EMAIL PROTECTED]/@'"${localstatedir}/@g" >>> $(top_srcdir)/conf/project.conf.in > $@ This is all explained in

Re: replacement of variable placeholders in files

2007-08-22 Thread Benoit SIGOURE
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' $(to

Re: replacement of variable placeholders in files

2007-08-22 Thread Benoit SIGOURE
On Aug 22, 2007, at 12:23 PM, Jason Curl wrote: Dizzy wrote: Hi I have an input file named project.conf.in in which I have some variable placeholders of the form ${VARIABLE}. I am trying to use sed to replace them with some actual contents so I have added a make rule in Makefile.am such

Re: replacement of variable placeholders in files

2007-08-22 Thread Bernd Jendrissek
On 8/22/07, Jason Curl <[EMAIL PROTECTED]> wrote: > Dizzy wrote: > > project.conf:project.conf.in $(top_builddir)/config.status > > $(SED) -e '[EMAIL PROTECTED]/@'"${localstatedir}/@g" > > $(top_srcdir)/conf/project.conf.in > $@ You're telling sed to match end-of-line with '$'. And make is eating

Re: replacement of variable placeholders in files

2007-08-22 Thread Jason Curl
Dizzy wrote: Hi I have an input file named project.conf.in in which I have some variable placeholders of the form ${VARIABLE}. I am trying to use sed to replace them with some actual contents so I have added a make rule in Makefile.am such as: project.conf:project.conf.in $(top_builddir)/con

replacement of variable placeholders in files

2007-08-22 Thread Dizzy
Hi I have an input file named project.conf.in in which I have some variable placeholders of the form ${VARIABLE}. I am trying to use sed to replace them with some actual contents so I have added a make rule in Makefile.am such as: project.conf:project.conf.in $(top_builddir)/config.status $(SED