Shorten git revision id
authorWerner Koch <wk@gnupg.org>
Mon, 3 Jan 2011 15:47:41 +0000 (16:47 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 3 Jan 2011 15:47:41 +0000 (16:47 +0100)
configure.ac

index 1c954f4649eb95f321857a8a8e8eba69d2035162..66b794cc423711d8aa38f10710fa941e2b2288e7 100644 (file)
@@ -65,7 +65,8 @@ NEED_LIBASSUAN_API=2
 NEED_LIBASSUAN_VERSION=2.0.0
 
 
-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