[OpenAFS-devel] Custom version string?

Harald Barth haba@kth.se
Tue, 24 Apr 2012 12:59:48 +0200 (CEST)


I want to set a custom version string like:

$ rxdebug a11c31n12.pdc.kth.se 7001 -v
Trying 193.11.170.136 (port 7001):
AFS version:  OpenAFS 1.6.1-pdc70 built  2012-04-23 
                           ^^^^^^

When compiling 1.6.1, the string 1.6.1 seems to be set at many places
like configure and .version file provided with the tar and/or
generated. Is there a single place I can specify 1.6.1-pdc70 or
is the right solution as I do it currently in my spec file:

echo 'echo -n %{version}%{?errse}-%{pkgrel}' > build-tools/git-version

which replaces git-version with a simpler - but for the purpose good
enough - oneliner.

Harald.