]> git.saurik.com Git - wxWidgets.git/commitdiff
Use portable comparison syntax in wx-config.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Oct 2009 09:17:39 +0000 (09:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 19 Oct 2009 09:17:39 +0000 (09:17 +0000)
"==" is not portable in test and while it works in most shells, it fails in
dash. Fix it by using "=".

Closes #11349.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config.in

index 7f1be378178f85bd03c51cfe1a88005b15764414..cb0397a472645b97704574f8374a38b0331d731a 100755 (executable)
@@ -386,7 +386,7 @@ get_mask()
 
     # use 2.8 or 2.9 version of the mask: the difference is the presence of
     # debug type in pre-2.9
-    if [ $is29orlater == 1 ]; then
+    if [ $is29orlater = 1 ]; then
         eval echo "\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}"
     else
         eval echo "\${$1_host:+\$$1_host-}\${$1_toolkit}\${$1_widgetset}-\${$1_chartype}-\${$1_debugtype}\${$1_linkage:+-\$$1_linkage}-\${$1_version}\${$1_flavour}"