[tracker] build: update firefox and thunderbird detection



commit e5cc7b3ffa79756895a92ce1a2fac334070e339f
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Wed Aug 6 13:54:20 2014 +0200

    build: update firefox and thunderbird detection

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 709ef32..5f781f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -472,7 +472,7 @@ have_tracker_miner_thunderbird="no "
 
 AC_PATH_PROG(THUNDERBIRD, thunderbird, thunderbird)
 if test -n $THUNDERBIRD; then
-   thunderbird_version=`$THUNDERBIRD --version | cut -d" " -f3`
+   thunderbird_version=`$THUNDERBIRD --version 2>/dev/null | awk '{print $NF}'`
 
    AX_COMPARE_VERSION([$thunderbird_version], ge, [$TRACKER_MINER_THUNDERBIRD_REQUIRED],
                       have_tracker_miner_thunderbird="yes",
@@ -486,7 +486,7 @@ have_tracker_miner_firefox="no "
 
 AC_PATH_PROG(FIREFOX, firefox, firefox)
 if test -n $FIREFOX; then
-   firefox_version=`$FIREFOX --version | cut -d" " -f3`
+   firefox_version=`$FIREFOX --version 2>/dev/null | awk '{print $NF}'`
 
    AX_COMPARE_VERSION([$firefox_version], ge, [$TRACKER_MINER_FIREFOX_REQUIRED],
                       have_tracker_miner_firefox="yes",


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