[svn] r7127: nemerle/trunk/configure

d svnadmin at nemerle.org
Thu Dec 21 01:45:08 CET 2006


Log:
Correct some invalid regexps that caused configure to fail with mono 1.2.2.1 and suppress find stderr output in cs2n tests.

Author: d
Date: Thu Dec 21 01:45:08 2006
New Revision: 7127

Modified:
   nemerle/trunk/configure

Modified: nemerle/trunk/configure
==============================================================================
--- nemerle/trunk/configure	(original)
+++ nemerle/trunk/configure	Thu Dec 21 01:45:08 2006
@@ -390,10 +390,10 @@
 echo_check_if "we are using Mono < 1.1.13"
 version=`"${monopath}mono" --version 2> /dev/null`
 if test "$?" = 0; then
-    ver=`echo $version | sed 's/.* \([0-9]*\.[0-9]*\.\?[0-9]*\).*/\1/g'`
-    m_major=`echo $ver | sed 's/\([0-9]*\)\.\([0-9]*\)\.\?\([0-9]*\)/\1/g'`
-    m_minor=`echo $ver | sed 's/\([0-9]*\)\.\([0-9]*\)\.\?\([0-9]*\)/\2/g'`
-    m_revision=`echo $ver | sed 's/\([0-9]*\)\.\([0-9]*\)\.\?\([0-9]*\)/\3/g'`
+    ver=`echo $version | sed 's/.*version \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/g'`
+    m_major=`echo $ver | cut -d . -f 1`
+    m_minor=`echo $ver | cut -d . -f 2`
+    m_revision=`echo $ver | cut -d . -f 3`
 
     if ((m_major < 1 ||
          m_major == 1 && m_minor < 1 ||
@@ -710,7 +710,7 @@
 	    # also copy it for pregenerated parser!
 	    cp tools/cs2n/antlr/antlr.runtime-2.7.5.dll tools/cs2n/antlr/antlr.runtime.dll
 	    echo_result "not supported" 
-	    if find tools/cs2n/CSharpParser.cs -cnewer tools/cs2n/csharpgrammar.g | grep -q "" ; then
+	    if find tools/cs2n/CSharpParser.cs -cnewer tools/cs2n/csharpgrammar.g 2> /dev/null | grep -q "" ; then
 	      :
 	    else
 	      echo "*** You won't be able to build CS2N! ***"



More information about the svn mailing list