Shorten BUILD_REVISION macro
authorWerner Koch <wk@gnupg.org>
Tue, 8 Mar 2011 12:56:49 +0000 (13:56 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 8 Mar 2011 12:56:49 +0000 (13:56 +0100)
ChangeLog
configure.ac

index e499f15..c72b1c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-08  Werner Koch  <wk@g10code.com>
+
+       * configure.ac (BUILD_REVISION): Use new git_brevis macro.
+
 2011-02-23  Werner Koch  <wk@g10code.com>
 
        * configure.ac (LIBGCRYPT_CONFIG_HOST): New.
index 618a5ee..f9e3593 100644 (file)
@@ -55,7 +55,8 @@ LIBGCRYPT_CONFIG_API_VERSION=1
 NEED_GPG_ERROR_VERSION=1.8
 
 is_development_version=my_issvn
-BUILD_REVISION=m4_if(git_revision,[],[svn_revision],[git_revision])
+m4_define([git_brevis],m4_esyscmd(printf "%u" 0x[]m4_substr(git_revision,0,4)))
+BUILD_REVISION=m4_if(git_revision,[],[svn_revision],[git_brevis])
 PACKAGE=$PACKAGE_NAME
 VERSION=$PACKAGE_VERSION