Patch from Dan Malea to get the Bourne shells scripts to run cleanly on Ubuntu.  



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@164801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/build-swig-wrapper-classes.sh b/scripts/build-swig-wrapper-classes.sh
index 34726eb..3f0bc2a 100755
--- a/scripts/build-swig-wrapper-classes.sh
+++ b/scripts/build-swig-wrapper-classes.sh
@@ -32,7 +32,7 @@
 # Check to see if we are in debug-mode or not.
 #
 
-if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ]
+if [ -n "$debug_flag" -a "$debug_flag" = "-debug" ]
 then
     Debug=1
 else
@@ -49,7 +49,7 @@
     exit 1
 fi
 
-if [ $Debug == 1 ]
+if [ $Debug -eq 1 ]
 then
     echo "Found lldb.swig file"
 fi
@@ -69,7 +69,7 @@
     fi
 fi
 
-if [ ${SWIG}a == a ]
+if [ ${SWIG}a = a ]
 then
     echo Error: could not find the swig binary
     exit 1
@@ -87,7 +87,7 @@
 
 for curlang in $languages
 do
-    if [ $Debug == 1 ]
+    if [ $Debug -eq 1 ]
     then
         echo "Current language is $curlang"
     fi
@@ -98,7 +98,7 @@
         continue
     else
 
-        if [ $Debug == 1 ]
+        if [ $Debug -eq 1 ]
         then
             echo "Found $curlang sub-directory"
         fi
@@ -113,7 +113,7 @@
             continue
         else
 
-            if [ $Debug == 1 ]
+            if [ $Debug -eq 1 ]
             then
                 echo "Found $curlang build script."
                 echo "Executing $curlang build script..."