[svn] GnuPG - r4819 - trunk

svn author dshaw cvs at cvs.gnupg.org
Wed Aug 27 19:01:30 CEST 2008


Author: dshaw
Date: 2008-08-27 19:01:29 +0200 (Wed, 27 Aug 2008)
New Revision: 4819

Modified:
   trunk/ChangeLog
   trunk/configure.ac
Log:
* configure.ac: Use printf for the most portable SVN version
  detection.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-08-27 16:57:45 UTC (rev 4818)
+++ trunk/ChangeLog	2008-08-27 17:01:29 UTC (rev 4819)
@@ -1,5 +1,8 @@
 2008-08-27  David Shaw  <dshaw at jabberwocky.com>
 
+	* configure.ac: Use printf for the most portable SVN version
+	detection.
+
 	* configure.ac: Darwin's /bin/sh has a builtin echo that doesn't
 	understand '-n'.  Use tr to trim the carriage return instead.
 

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2008-08-27 16:57:45 UTC (rev 4818)
+++ trunk/configure.ac	2008-08-27 17:01:29 UTC (rev 4819)
@@ -26,11 +26,8 @@
 # "svn up" and "autogen.sh" right before creating a distribution.
 m4_define([my_version], [2.0.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 at gnupg.org])




More information about the Gnupg-commits mailing list