diff options
author | Thomas Haller <thaller@redhat.com> | 2015-08-10 14:24:25 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-08-10 14:26:42 +0200 |
commit | 5158105c11aae6b4c358aafd1bb8eb004555f346 (patch) | |
tree | b123be03c2cbe56ccf802874bc060d9f27789b04 | |
parent | 2fa478eab14093203937d69d24d563bfd88dac0d (diff) | |
download | network-manager-applet-5158105c11aae6b4c358aafd1bb8eb004555f346.tar.gz |
build: embed NM_GIT_SHA in generated "configure" script
This detects the current git commit id and embeds it in the
generated "configure" script. As the configure script is included
in the dist-tarball, we can detect the original git commit from
a tarball.
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 056129ac..e3e6b158 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,10 @@ dnl Initialize libtool LT_PREREQ([2.2.6]) LT_INIT +m4_define([nm_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 ])]) +NM_GIT_SHA=nm_git_sha +AC_DEFINE_UNQUOTED(NM_GIT_SHA,"$NM_GIT_SHA",[git commit id of the original source code version]) + dnl dnl Checks for typedefs, structures, and compiler characteristics. dnl |