Improve parsing of the GIT revision number.

* configure.ac (mmm4_revision): Use git rev-parse.
This commit is contained in:
Werner Koch 2012-11-16 10:35:33 +01:00
parent ac775780fe
commit 011faa0c68
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ m4_define([mym4_version], [2.1.0])
# the decimalized short revision number, a beta version string and a
# flag indicating a development version (mym4_isgit). Note that the
# m4 processing is done by autoconf and not during the configure run.
m4_define([mym4_revision], m4_esyscmd([git branch -v 2>/dev/null \
| awk '/^\* / {printf "%s",$3}']))
m4_define([mym4_revision],
m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r']))
m4_define([mym4_revision_dec],
m4_esyscmd_s([echo $((0x$(echo ]mym4_revision[|head -c 4)))]))
m4_define([mym4_betastring],