[gnome-shell] [configure] Do not use grep -q



commit a5f9039e12663114e62e1688f0d725ddd4bb9826
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 9 20:06:18 2010 +0200

    [configure] Do not use grep -q
    
    Although mandated by POSIX, not all implementions[0] support this
    option. Use redirection to /dev/null instead.
    
    [0] http://docs.sun.com/app/docs/doc/816-5165/grep-1?a=view

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2718d8e..bbdcd9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,7 +155,7 @@ AC_PATH_PROG(mutter, [mutter])
 AC_SUBST(mutter)
 
 AC_MSG_CHECKING([if mutter was compiled with GTK+-3.0])
-if $PKG_CONFIG --print-requires libmutter-private | grep -q gtk+-3; then
+if $PKG_CONFIG --print-requires libmutter-private | grep gtk+-3 >/dev/null; then
   AC_MSG_RESULT(yes)
 else
   AC_MSG_RESULT(no)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]