configure.ac: get ver_micro directly from git repository

Origin commit data
------------------
Branch: ni/coolstream
Commit: d99d5d574b
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-11-13 (Tue, 13 Nov 2018)

Origin message was:
------------------
- configure.ac: get ver_micro directly from git repository

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-11-13 00:23:00 +01:00
parent d710d7fb85
commit b6d93bae20

View File

@@ -1,6 +1,12 @@
# Keep in sync with git tags! Set tag with 'git tag NI-3.60'.
define(ver_major, 3) define(ver_major, 3)
define(ver_minor, 60) define(ver_minor, 60)
define(ver_micro, 0) # ver_micro counts commits since last tag
define(ver_micro, m4_esyscmd([
GITTAG=$(git tag -l "NI-*" | tail -n1);
GITREV=$(git rev-list $GITTAG..HEAD --count);
printf "$GITREV"
]))
AC_INIT(NI-Neutrino, ver_major.ver_minor.ver_micro) AC_INIT(NI-Neutrino, ver_major.ver_minor.ver_micro)
AM_INIT_AUTOMAKE([nostdinc foreign]) AM_INIT_AUTOMAKE([nostdinc foreign])