* configure.ac: Use printf for the most portable SVN version
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 27 Aug 2008 16:57:45 +0000 (16:57 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 27 Aug 2008 16:57:45 +0000 (16:57 +0000)
detection.

ChangeLog
configure.ac

index 50e78f9..df4bce6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-27  David Shaw  <dshaw@jabberwocky.com>
+
+       * configure.ac: Use printf for the most portable SVN version
+       detection.
+
 2008-08-11  Werner Koch  <wk@g10code.com>
 
        * configure.ac: Check for size of time_t.
index 19afbae..03043e7 100644 (file)
@@ -27,10 +27,8 @@ min_automake_version="1.9.3"
 # "svn up" and "autogen.sh --force" right before creating a distribution.
 m4_define([my_version], [1.4.10])
 m4_define([my_issvn], [yes])
-
-m4_define([svn_revision], m4_esyscmd([echo $((svn info 2>/dev/null \
-          || echo 'Revision: 0')|sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)| \
-          tr -d '\n']))
+m4_define([svn_revision], m4_esyscmd([printf "%d" $(svn info 2>/dev/null \
+          | sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)]))
 AC_INIT([gnupg], 
         [my_version[]m4_if(my_issvn,[yes],[-svn[]svn_revision])],
         [bug-gnupg@gnu.org])