[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to dinamically set VERSION for AC_INIT
From: |
Andreas Schwab |
Subject: |
Re: How to dinamically set VERSION for AC_INIT |
Date: |
Fri, 14 Dec 2007 16:12:29 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
Eric Blake <address@hidden> writes:
> 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?
Yes, probably a good idea.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."