[flashrom] [PATCH 2/2] Improve getrevision.sh.

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Sat Aug 17 01:11:37 CEST 2013


On Fri, 16 Aug 2013 14:42:42 -0700
David Hendricks <dhendrix at google.com> wrote:

> On Wed, Aug 7, 2013 at 2:57 PM, Stefan Tauner <
> stefan.tauner at student.tuwien.ac.at> wrote:
> 
> Now to bikeshed the appearance of the the version string...
> 

And before that... I'd like to add some functionality for the
automatic generation of the manpage
(http://patchwork.coreboot.org/patch/3884/).
I think I'll add an optional parameter that specifies what part of the
repository should be taken into account: default == everything, or
specific files only. With that we could call getrevision.sh -t
flashrom.8(.in) and get the last modification date of the manpage.

My current git patch prints the version string as follows:
./flashrom -R
flashrom v0.9.7-r1706-b75bc95-6-dirty available from git at github.com:stefanct/flashrom.git git, modified 2013-08-12T02:19:39+0200 on Linux 3.8.0-6-generic (x86_64)
which is obviously a bit long.

maybe we could just add a line break after the comma and be happy? :)
v0.9.7-r1706-b75bc95-6-dirty means:
stable version-svn revision-git hash-number of commits since last svn
commit (i.e. how diverged from upstream)-optional "dirty" string if
there are uncommitted changes.
-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner




More information about the flashrom mailing list