[Groonga-mysql-commit] mroonga/mroonga [master] Don't use -r option for sed

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Feb 28 17:28:15 JST 2013


Kouhei Sutou	2013-02-28 17:28:15 +0900 (Thu, 28 Feb 2013)

  New Revision: dd5c06a5cc5ddd4da5b8ab8c6f269524856969b6
  https://github.com/mroonga/mroonga/commit/dd5c06a5cc5ddd4da5b8ab8c6f269524856969b6

  Log:
    Don't use -r option for sed
    
    Because BSD sed doesn't have -r option. Mac OS X ships BSD sed.

  Modified files:
    configure.ac

  Modified: configure.ac (+1 -1)
===================================================================
--- configure.ac    2013-02-28 11:10:41 +0900 (63fda00)
+++ configure.ac    2013-02-28 17:28:15 +0900 (5a8d4d8)
@@ -168,7 +168,7 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
   MYSQL_CFLAGS="$MYSQL_CFLAGS $($ac_mysql_config --cflags)"
   MYSQL_INCLUDES="$MYSQL_INCLUDES $($ac_mysql_config --include)"
   MYSQL_VERSION="$($ac_mysql_config --version)"
-  MYSQL_MAJOR_MINOR_VERSION=`echo $MYSQL_VERSION | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)$/\1.\2/'`
+  MYSQL_MAJOR_MINOR_VERSION=`echo $MYSQL_VERSION | sed -e 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\1.\2/'`
   case "$MYSQL_MAJOR_MINOR_VERSION" in
   5.6*)
       USE_LIBMYSQLSERVICES="yes"
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-mysql-commit mailing list
Back to archive index