summaryrefslogtreecommitdiff
path: root/converters/wkhtmltopdf/patches/patch-qt_config.tests_mac_dwarf2.test
blob: c8e5f2df1bcc6f9c1b66f8976498b3f1d969b819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-qt_config.tests_mac_dwarf2.test,v 1.1 2017/06/23 07:12:19 manu Exp $

Fix == operator in shell script

--- qt/config.tests/mac/dwarf2.test.orig	2017-06-20 10:23:31.000000000 +0200
+++ qt/config.tests/mac/dwarf2.test	2017-06-20 10:23:51.000000000 +0200
@@ -40,9 +40,9 @@
 # Test for xcode 2.4.0, which has a broken implementation of DWARF
 "$COMPILER" $WORKDIR/xcodeversion.cpp $CXXFLAGS $LFLAGS -o xcodeversion -framework Carbon;
 ./xcodeversion
 
-if [ "$?" == "1" ]; then
+if [ "$?" = "1" ]; then
     DWARF2_SUPPORT_BROKEN=yes
 fi
 
 rm xcodeversion
@@ -51,9 +51,9 @@
 if [ "$DWARF2_SUPPORT" != "yes" ]; then
     [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
     exit 0
 else
-    if [ "$DWARF2_SUPPORT_BROKEN" == "yes" ]; then
+    if [ "$DWARF2_SUPPORT_BROKEN" = "yes" ]; then
         [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
         exit 0
     else
         [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols enabled."