Re: [ecasound] Ecasound 2.3.5 released

From: Junichi Uekawa <dancer@email-addr-hidden>
Date: Sun Mar 27 2005 - 06:02:06 EEST

Hi,

> > Gah, actually the following patch still requires
> > ecasoundrc.in change.
> [...]
> > o moving ecasoundrc.in generation from 'configure' to 'Makefile'
>
> This is now also done in CVS. Awk is used to replace variables in
> ecasoundrc.in. The same question applies here: is $datadir/ecasound ok, or
> should be possible to specify pkgdatadir independently from datadir?

Is there a reason for re-defining the value?

I will probably be able to work around them; but I think
automake/autoconf supports having DATADIR etc set at 'make' time
(depending on the 'prefix' value). Which will be broken in this approach.

> And btw, I don't possess enough awk-foo to implement the ecasoundrc
> generationw without using sub(). I'm not 100% whether all awk versions
> support it. Does anyone know better (or know how to write the awk script
> without sub() or other gawk builtins)?

I think it's more recommended to use sed for this purpose.
It's more well-known to be mostly working on most ports.

I had used this kind of snippet:
dmboot: ${srcdir}/dmboot.in
        sed -e "s%[@]dmachinemon-master[@]%@bindir@/dmachinemon-master%" -e "s%[@]dmachinemon-servent[@]%@bindir@/dmachinemon-servent%" -e "s%[@]mandir[@]%@mandir@%" < $? > $@

diff -u -r1.37 Makefile.am
--- Makefile.am 26 Mar 2005 17:55:43 -0000 1.37
+++ Makefile.am 27 Mar 2005 02:58:00 -0000
@@ -29,8 +29,7 @@
        rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datadir)/ecasound

 ecasoundrc: ecasoundrc.in Makefile.am
- @AWK@ 'sub(/\@VERSION\@/, "$(VERSION)") { } \
- sub(/\@prefix\@/, "$(prefix)") { } \
- sub(/\@datadir\@/, "$(datadir)") { } \
- // { print }' \
- $(top_srcdir)/ecasoundrc.in >ecasoundrc
+ sed -e "s%[@]VERSION[@]%$(VERSION)%" \
+ -e "s%[@]prefix[@]%$(prefix)%" \
+ -e "s%[@]datadir[@]%$(datadir)%" \
+ < $(top_srcdir)/ecasoundrc.in > ecasoundrc

regards,
        junichi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sun Mar 27 08:15:07 2005

This archive was generated by hypermail 2.1.8 : Sun Mar 27 2005 - 08:15:08 EEST