1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00

Support a git revision string

This commit is contained in:
Werner Koch 2011-01-10 15:18:09 +01:00
parent fc959326b5
commit 344d72b2f7
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-01-10 Werner Koch <wk@g10code.com>
* configure.ac: Support a git_revision string.
2010-07-19 Werner Koch <wk@g10code.com>
Release 2.0.16.

View File

@ -29,8 +29,11 @@ m4_define([my_issvn], [yes])
m4_define([svn_revision], m4_esyscmd([printf "%d" $(svn info 2>/dev/null \
| sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))
m4_define([git_revision], m4_esyscmd([git branch -v 2>/dev/null \
| awk '/^\* / {printf "%s",$3}']))
AC_INIT([gnupg],
[my_version[]m4_if(my_issvn,[yes],[-svn[]svn_revision])],
[my_version[]m4_if(my_issvn,[yes],
[m4_if(git_revision,[],[-svn[]svn_revision],[-git[]git_revision])])],
[http://bugs.gnupg.org])
# Set development_version to yes if the minor number is odd or you
# feel that the default check for a development version is not