[Gnucash-changes] r13226 - gnucash/trunk - Um, quote the sed script so it actually works right. Oops.

Derek Atkins warlord at cvs.gnucash.org
Sat Feb 11 20:59:02 EST 2006


Author: warlord
Date: 2006-02-11 20:59:02 -0500 (Sat, 11 Feb 2006)
New Revision: 13226
Trac: http://svn.gnucash.org/trac/changeset/13226

Modified:
   gnucash/trunk/configure.in
Log:
Um, quote the sed script so it actually works right.  Oops.


Modified: gnucash/trunk/configure.in
===================================================================
--- gnucash/trunk/configure.in	2006-02-11 23:24:01 UTC (rev 13225)
+++ gnucash/trunk/configure.in	2006-02-12 01:59:02 UTC (rev 13226)
@@ -29,9 +29,9 @@
 
 # Parse out the version number
 GNUCASH_VERSION_STRING=AC_PACKAGE_VERSION
-GNUCASH_MAJOR_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\1/'`
-GNUCASH_MINOR_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\2/'`
-GNUCASH_MICRO_VERSION=`echo $GNUCASH_VERSION_STRING | sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\3/'`
+GNUCASH_MAJOR_VERSION=`echo $GNUCASH_VERSION_STRING | [ sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\1/' ]`
+GNUCASH_MINOR_VERSION=`echo $GNUCASH_VERSION_STRING | [ sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\2/' ]`
+GNUCASH_MICRO_VERSION=`echo $GNUCASH_VERSION_STRING | [ sed -e 's/^\([^\.]*\)\.\([^.]*\)\.\(.*\)$/\3/' ]`
 
 ##  Do this first, because the other tests depend on it:
 



More information about the gnucash-changes mailing list