Bug 895238 - Avoid using perl regex with grep(1) for portability. r=glandium, a=bajaj
authorJan Beich <jbeich@tormail.org>
Thu, 18 Jul 2013 10:17:28 -0400
changeset 148019 1fa6d0bcd26f8802a9821b494fd87d40a8733d8c
parent 148018 5facfc2bf316d9f49234abbd0b5ca396bffa41f5
child 148020 7d47ae7af1fcff58ed9e0bd12e50a134a554d5dc
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, bajaj
bugs895238
milestone24.0a2
Bug 895238 - Avoid using perl regex with grep(1) for portability. r=glandium, a=bajaj
configure.in
--- a/configure.in
+++ b/configure.in
@@ -4719,17 +4719,17 @@ then
     [  --with-qtdir=\$dir       Specify Qt directory ],
     [ QTDIR=$withval])
 
     if test -z "$QTDIR"; then
         AC_CHECK_PROGS(HOST_QMAKE, $HOST_QMAKE qmake, "")
     else
         HOST_QMAKE="$QTDIR/bin/qmake"
     fi
-    QT_VERSION=`$HOST_QMAKE -v | grep 'Using Qt version' | grep -oP '\d+\.\d+\.\d+'`
+    QT_VERSION=`$HOST_QMAKE -v | grep 'Using Qt version' | egrep -o '[[0-9]]+\.[[0-9]]+\.[[0-9]]+'`
 
     if test -z "$QTDIR"; then
         case $QT_VERSION in
         5.*)
             AC_MSG_RESULT("Using qt5: $QT_VERSION")
             PKG_CHECK_MODULES(MOZ_QT, Qt5Gui Qt5Network Qt5Core Qt5OpenGL Qt5Widgets Qt5PrintSupport, ,
             [
               AC_MSG_ERROR([$MOZ_QT_PKG_ERRORS Need qtbase development packages, (On Ubuntu, you might try installing the packages qtbase5-dev libqt5opengl5-dev.)])