summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Amelkin <alexander@amelkin.msk.ru>2015-08-11 02:52:33 +0300
committerAlexander Amelkin <alexander@amelkin.msk.ru>2017-02-02 15:42:36 +0300
commitb35a6349087e64406ff6d4787c0612ae982ab4c4 (patch)
tree06299eef131d5d7609d1bdce2d69b2b25e6e76ea
parentbc7d23761d07e67dad91c9d1dfb140c7d07c1a12 (diff)
downloadipmitool-b35a6349087e64406ff6d4787c0612ae982ab4c4.tar.gz
Add git hash and dirty mark to ipmitool version
Replace the static 'csv' suffix with a short hash and a 'dirty' mark (when the tree is modified). When git is not available, '.git_snapshot' suffix will be used.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 896577b..f7676c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,8 @@
dnl
dnl autoconf for ipmitool
dnl
-AC_INIT([ipmitool], [1.8.18-csv])
+m4_define([git_suffix], m4_esyscmd_s(git describe --always --dirty=wc 2>/dev/null || echo git_snapshot))
+AC_INIT([ipmitool], [1.8.18.git_suffix])
AC_CONFIG_SRCDIR([src/ipmitool.c])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign])