[svn] GnuPG - r4818 - branches/STABLE-BRANCH-1-4

svn author dshaw cvs at cvs.gnupg.org
Wed Aug 27 18:57:46 CEST 2008


Author: dshaw
Date: 2008-08-27 18:57:45 +0200 (Wed, 27 Aug 2008)
New Revision: 4818

Modified:
   branches/STABLE-BRANCH-1-4/ChangeLog
   branches/STABLE-BRANCH-1-4/configure.ac
Log:
* configure.ac: Use printf for the most portable SVN version
detection.


Modified: branches/STABLE-BRANCH-1-4/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-1-4/ChangeLog	2008-08-27 05:58:30 UTC (rev 4817)
+++ branches/STABLE-BRANCH-1-4/ChangeLog	2008-08-27 16:57:45 UTC (rev 4818)
@@ -1,3 +1,8 @@
+2008-08-27  David Shaw  <dshaw at jabberwocky.com>
+
+	* configure.ac: Use printf for the most portable SVN version
+	detection.
+
 2008-08-11  Werner Koch  <wk at g10code.com>
 
 	* configure.ac: Check for size of time_t.

Modified: branches/STABLE-BRANCH-1-4/configure.ac
===================================================================
--- branches/STABLE-BRANCH-1-4/configure.ac	2008-08-27 05:58:30 UTC (rev 4817)
+++ branches/STABLE-BRANCH-1-4/configure.ac	2008-08-27 16:57:45 UTC (rev 4818)
@@ -27,10 +27,8 @@
 # "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 at gnu.org])




More information about the Gnupg-commits mailing list