[LinuxBIOS] [PATCH] superiotool: Make --version actually work correctly

Ulf Jordan jordan at chalmers.se
Sat Oct 6 17:56:07 CEST 2007


On Sat, 6 Oct 2007, Robinson Tryon wrote:

> What about pulling the version directly out of SVN at build time?  Like this:
>
> svn info | sed -n 's/.*Revision: \([0-9]*\)/\1/ p'
>
> As long as the Makefile lives at the top level of the project, this
> value should always reflect the latest commit in the current checkout.

That looks like a good solution.

I read a bit in the svn book, and they recommend using svnversion for 
getting a "global" revision number for a set of files. However, that tool 
seems to have a bit more varying output, reflecting local changes and 
mixed revsion numbers etc.

/ulf




More information about the coreboot mailing list