We no longer have the OpenAFS version in the AM_INIT_AUTOMAKE. Get the
version from the equivalent AC_INIT version, which is determined by
running build-tools/git-version. So, run git-version to get the
version.
Change-Id: I5feb72ba35566315654ab88f2047be8a7ac6b40a
Reviewed-on: http://gerrit.openafs.org/2640
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
my $tmpdir = File::Temp::tempdir(CLEANUP => 1);
system("tar -C $tmpdir -xvjf $srcball '\*/configure.ac' ".
- "'\*/src/packaging/RedHat' > /dev/null")==0
+ "'\*/src/packaging/RedHat' ".
+ "'\*/build-tools' > /dev/null")==0
or die "Unable to unpack src tar ball\n";
my $dirh = IO::Dir->new($tmpdir);
}
undef $fh;
+if (not defined($afsversion)) {
+ $afsversion = `"$srcdir/build-tools/git-version" "$srcdir"`;
+}
+
# Build the RPM root
print "Building version $afsversion\n";