Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Nortmann <bernhard.nortmann@web.de>2016-10-21 18:18:32 +0300
committerBernhard Nortmann <bernhard.nortmann@web.de>2016-10-21 22:46:03 +0300
commit5792814010b7f0ac765babe810bd63d6ba8e3fe5 (patch)
tree3e13e6a88bb5fb4a06aebca4e78c63bb76262799 /common.h
parentfc30490fd42c49e27cf80212bd57c0d09b332dd1 (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 66ca22e..488d1d4 100644
--- a/common.h
+++ b/common.h
@@ -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__)