[Top][All Lists]

[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 15:56:49 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

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
> AC_INIT(my-fine-package, $SVN_VERSION)

AC_INIT(my-fine-package, m4_esyscmd([./ | tr -d '\n']))

Note that you need to manually remove the final newline, unlike command
substitutions m4_esyscmd does not do that for you.


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."

reply via email to

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