[adding bug-gnulib, as owner of the git-version-gen script]

According to Paolo Bonzini on 1/26/2010 3:24 AM:
> On 01/24/2010 10:01 AM, Ralf Wildenhues wrote:
>> Somehow a git (tarball?[1]) checkout of Autoconf sometimes manages to
>> get a version of UNKNOWN into its .version file.  Presumably that is on
>> systems without git installed (or listed as dependency).  See on the
>> hydra build:<http://hydra.nixos.org/build/256086>
>>
>> My point is, the error that follows is quite unintuitive, and the issue
>> itself is worth fixing, too, I guess.
> 
> True.
> 
>> Maybe store in git a file
>> containing at least the latest stable release number, so we can fall
>> back to something like 2.65-dirty rather than UNKNOWN?
> 
> You can get it from
> 
> sed -e '/.*changes in Autoconf \([^( ]*\) ([^?].*/!d;s//\1/;q' NEWS

Or more simply, cat .prev-version

Perhaps this is something that build-aux/git-version-gen should attempt to
use as a fallback before returning UNKNOWN?

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

Eric Blake             e...@byu.net

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to