ctdb-build: Calculate correct version when building from tarball
authorAmitay Isaacs <amitay@gmail.com>
Fri, 23 Oct 2015 02:05:20 +0000 (13:05 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 30 Oct 2015 01:00:27 +0000 (02:00 +0100)
commitded94c426b2e7758735a57ec2b5c7c62a1b4fc65
treea90a6c2bbadcffc785f0950fd332fcca57042037
parentf50ac680340ad2981ffac2b7ac0e2c746a17882c
ctdb-build: Calculate correct version when building from tarball

When building standalone ctdb from git repo, samba_version_file correctly
includes git sha in VERSION string.  When building standalone ctdb from
tarball, samba_version_file puts UNKNOWN in the VERSION string.

Use the packaged include/ctdb_version.h file to set the correct git sha.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/packaging/mkversion.sh
ctdb/server/ctdb_daemon.c
ctdb/tools/ctdb.c