[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to dinamically set VERSION for AC_INIT
From: |
Stefano Sabatini |
Subject: |
Re: How to dinamically set VERSION for AC_INIT |
Date: |
Fri, 14 Dec 2007 16:46:29 +0100 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
On date Friday 2007-12-14 15:56:49 +0100, Andreas Schwab wrote:
> Stefano Sabatini <address@hidden> writes:
>
> > Hi all autoconfers,
> >
> > I have a package managed by SVN, and I would like to assign the
> > AC_PACKAGE_VERSION using the current SVN version number.
> >
> > So I hacked up this in configure.in:
> >
> > SVN_VERSION=`./version.sh`
> >
> > AC_INIT(my-fine-package, $SVN_VERSION)
>
> AC_INIT(my-fine-package, m4_esyscmd([./version.sh | tr -d '\n']))
>
> Note that you need to manually remove the final newline, unlike command
> substitutions m4_esyscmd does not do that for you.
Thanks so much Andreas and Eric for your quick replies, your solution
works just fine.
Best regards.
--
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)