diff options
author | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-10-21 18:18:32 +0300 |
---|---|---|
committer | Bernhard Nortmann <bernhard.nortmann@web.de> | 2016-10-21 22:46:03 +0300 |
commit | 5792814010b7f0ac765babe810bd63d6ba8e3fe5 (patch) | |
tree | 3e13e6a88bb5fb4a06aebca4e78c63bb76262799 /common.h | |
parent | fc30490fd42c49e27cf80212bd57c0d09b332dd1 (diff) |
Add support for auto-updated version information
The Makefile will now use a script (autoversion.sh) to update
version.h, which in turn defines a VERSION string and gets
included from common.h.
The idea is that version.h normally receives a git-describe
based identifier that represents the current checkout. In
cases where git might not be available, e.g. for builds from
a tarball, the script will instead fall back to a predefined
version (that should reflect the most recent release tag).
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -19,6 +19,8 @@ #include <stddef.h> /* offsetof */ +#include "version.h" /* auto-generated VERSION string */ + /** flag function argument as unused */ #ifdef UNUSED #elif defined(__GNUC__) |