[gtk-doc] gtkdoc-mkhtml: Fix test comparison operator



commit 6f3507ce7ffb5667d0bc832324830cbc3310128e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Tue Mar 14 09:28:40 2017 +0100

    gtkdoc-mkhtml: Fix test comparison operator
    
    Fixes this error:
    gtkdoc-mkhtml: 77: test: unexpected operator
    
    It should be = instead of ==
    
    Fix also two more cases found in tests/sanity.sh.

 gtkdoc-mkhtml.in |    2 +-
 tests/sanity.sh  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in
index 4866439..2c7d09c 100644
--- a/gtkdoc-mkhtml.in
+++ b/gtkdoc-mkhtml.in
@@ -74,7 +74,7 @@ run_xsltproc() {
     # we could do "$path_option $PWD "
     # to avoid needing rewriting entities that are copied from the header
     # into docs under xml
-    if test "$GTKDOC_PROFILE" == ""; then
+    if test "$GTKDOC_PROFILE" = ""; then
         if test "X$searchpath" = "X"; then
             @XSLTPROC@ "$@"
         else
diff --git a/tests/sanity.sh b/tests/sanity.sh
index 650258b..1db182f 100755
--- a/tests/sanity.sh
+++ b/tests/sanity.sh
@@ -86,10 +86,10 @@ nok=0
 for file in $dir/*/docs/gtkdoc-*.log; do
   expected_lines="1"
   # adjust for known files
-  if test $file == "$dir/fail/docs/gtkdoc-mkdb.log"; then
+  if test $file = "$dir/fail/docs/gtkdoc-mkdb.log"; then
     expected_lines="16"
   fi
-  if test $file == "$dir/gobject/docs/gtkdoc-fixxref.log"; then
+  if test $file = "$dir/gobject/docs/gtkdoc-fixxref.log"; then
     expected_lines="2"
   fi
   case $file in


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