diff options
author | Thomas Haller <thaller@redhat.com> | 2014-07-04 17:58:04 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-07-07 09:33:24 (GMT) |
commit | 94e134587394c5fa6a6159a7c35bd89a7047f822 (patch) | |
tree | 5783941a123ba517a54d37a452dc19dfcb6f5cc6 | |
parent | c62cda91f73b418c1414cb3dc0f56af9e09ffcfd (diff) | |
download | libnl-94e134587394c5fa6a6159a7c35bd89a7047f822.zip libnl-94e134587394c5fa6a6159a7c35bd89a7047f822.tar.gz libnl-94e134587394c5fa6a6159a7c35bd89a7047f822.tar.bz2 |
build: embed the git commit id of HEAD in the configure script
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e469a77..d833933 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,7 @@ m4_define([libnl_major_version], [3]) m4_define([libnl_minor_version], [2]) m4_define([libnl_micro_version], [25]) +m4_define([libnl_git_sha], [m4_esyscmd([ ( [ -d ./.git/ ] && [ "$(readlink -f ./.git/)" = "$(readlink -f "$(git rev-parse --git-dir 2>/dev/null)" 2>/dev/null)" ] && git rev-parse --verify -q HEAD 2>/dev/null ) || true ])]) # The following explanation may help to understand the above rules a bit @@ -55,6 +56,7 @@ MIN_VERSION=libnl_minor_version AC_SUBST(MIN_VERSION) MIC_VERSION=libnl_micro_version AC_SUBST(MIC_VERSION) +LIBNL_GIT_SHA=libnl_git_sha LIBNL_VERSION=libnl_version AC_SUBST(LIBNL_VERSION) |