autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to dinamically set VERSION for AC_INIT


From: Eric Blake
Subject: Re: How to dinamically set VERSION for AC_INIT
Date: Fri, 14 Dec 2007 08:05:42 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andreas Schwab on 12/14/2007 7:56 AM:
> 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.

Hmm - m4's esyscmd does not strip the newline, but maybe we can make
m4sugar's m4_esyscmd do so.  What do you think?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYpvG84KuGfSFAYARAqmaAJ9Ii1sABNIZ6DCTCqJaViE0RxxfNgCgn7j4
REN9ac9t+hUN+4WPSCYbZss=
=cz9k
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]