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 1c954f4..66b794c 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