From b35a6349087e64406ff6d4787c0612ae982ab4c4 Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Tue, 11 Aug 2015 02:52:33 +0300 Subject: [PATCH] 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. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])