Dear Nick,
Yes, your email was definitely helpful and clear! Many thanks for that!
Now the macro works like a charm.
The only thing that remains osbcure to me is what would be the best way
to generate our "VERSION" file, the one I am trying to replace.
ONe simple way would be to have a VERSION.
Dear Peter,
Many thanks for your response and the link to your code!
I willl definitely look into it. It's just that I wanted to see if I am
able to write the code by myself first, so that I can then compare what
I was able to produce to what other produced, but I'll definitely look
at it.
Thank
Sébastien Hinderer (2021/08/25 15:45 +0200):
> Dear Nick,
>
> Yes, your email was definitely helpful and clear! Many thanks for that!
>
> Now the macro works like a charm.
>
> The only thing that remains osbcure to me is what would be the best way
> to generate our "VERSION" file, the one I am tryi
On Wed, Aug 25, 2021, at 10:49 AM, Sébastien Hinderer wrote:
> Sébastien Hinderer (2021/08/25 15:45 +0200):
> > My preference would be to have VERSION generated at the same time than
> > the configure script, i.e. during the autoconf invocation.
> >
> > Is that possible?
> >
> > I started to invest
Hey Zack!
Many thanks for your reposne!
I'll not quote you, to keep mine short.
No, I wasn't aware that the macro wouold be executed several times. It's
a pity, but I do think it will do exactly the same thing eeach time. And
at the moemnt, as soon as we use some components of VERSION in the bui
On Wed, Aug 25, 2021, at 12:06 PM, Sébastien Hinderer wrote:
> Zack Weinberg (2021/08/25 11:39 -0400):
> > m4_syscmd is a primitive, and it doesn't expand its argument, so you need
> > to expand PKG_VERSION first:
> >
> > m4_syscmd([cat > VERSION << \END_OF_VERSION_FILE
> > ]PKG_VERSION[
> >
> > #
Hi Sebastien,
On 26/8/21 12:49 am, Sébastien Hinderer wrote:
Perhaps macros
are available that let one write some content to a file directly from
aclocal.m4?
There is a macro in the autoconf-archive (not part of autoconf) that let
you write to a file at autoconf time. The code is very similar