Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- configure.ac | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 7d49a52..00d1acc 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,13 @@ # bootstrap / init AC_PREREQ([2.61]) -AC_INIT([sheepdog], [0.2.3], [sheepdog at lists.wpkg.org]) +m4_define([sheepdog_version], [0.2.3]) + +m4_define([git_version], + m4_esyscmd_s([git describe --tags --dirty 2> /dev/null | sed 's/^v//'])) + +AC_INIT([sheepdog], m4_default(git_version, sheepdog_version), + [sheepdog at lists.wpkg.org]) AM_INIT_AUTOMAKE([-Wno-portability]) AC_CONFIG_SRCDIR([collie/collie.c]) -- 1.7.2.5 |