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.
This commit is contained in:
Alexander Amelkin 2015-08-11 02:52:33 +03:00
parent bc7d23761d
commit b35a634908

View File

@ -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])