mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +01:00
Support a git revision string
This commit is contained in:
parent
fc959326b5
commit
344d72b2f7
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user