[PATCH] configure: support arbitrary versions via a shell script
Michael Hope
michael.hope@linaro.org
Tue Nov 15 02:42:00 GMT 2011
On Tue, Nov 15, 2011 at 10:17 AM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Michael, All,
>
> On Monday 14 November 2011 21:37:15 Michael Hope wrote:
>> That sounds good. There's a minor bug in your version: ./configure
>> --help uses the version from .version instead of version.sh as
>> do_help() is called before version.sh is updated.
>>
>> Then again, it had a similar problem before the patch: ./configure
>> --help would report crosstool-NG-hg instead of the full
>> crosstool-NG-hg-revno-foo.
>
> Indeed, the /issue/ was there previously as well.
> So, it is not a regression! ;-)
>
>> Let me know if it's important and I can make a patch,
>
> I understand it could be confusing.
> - the easy way is to remove the version string from the help entry;
> - the proper way would be to move the version computation upward, but
> it needs ${sed} that is available only after the tests, which do not
> get run for --help.
>
> So, we could just move the version calculations upward, print the pristine
> version string in --help, and just mangle the string at the moment we need
> it and can do it.
>
> If the sight of the incorrect version string is absolutely untenable for
> you, if your screen turns itself off so you don't get to see it, if you
> lose your sanity at the mere thought of seeing the raw version, then by
> all means, send a patch! ;-)
The current version is fine,
-- Michael the nit-picker
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list