[libcxx] r206118 - Not everyone uses bash, so fix test syntax.

Joerg Sonnenberger joerg at bec.de
Sat Apr 12 14:12:56 PDT 2014


Author: joerg
Date: Sat Apr 12 16:12:55 2014
New Revision: 206118

URL: http://llvm.org/viewvc/llvm-project?rev=206118&view=rev
Log:
Not everyone uses bash, so fix test syntax.

Modified:
    libcxx/trunk/lib/buildit

Modified: libcxx/trunk/lib/buildit
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/lib/buildit?rev=206118&r1=206117&r2=206118&view=diff
==============================================================================
--- libcxx/trunk/lib/buildit (original)
+++ libcxx/trunk/lib/buildit Sat Apr 12 16:12:55 2014
@@ -50,7 +50,7 @@ case $TRIPLE in
       RC_CFLAGS="-arch i386 -arch x86_64"
     fi
     SOEXT=dylib
-    if [ "$MACOSX_DEPLOYMENT_TARGET" == "10.6" ]
+    if [ "$MACOSX_DEPLOYMENT_TARGET" = "10.6" ]
     then
         EXTRA_FLAGS="-nostdinc++ -std=c++11 -U__STRICT_ANSI__"
         LDSHARED_FLAGS="-o libc++.1.dylib \
@@ -106,7 +106,7 @@ case $TRIPLE in
     hostOS=`echo $hostOS | sed -e "s/\s+$//"`
     hostOS=`echo $hostOS | tr '[A-Z]' '[a-z]'`
 
-    if [ $hostOS == "linux" ]
+    if [ $hostOS = "linux" ]
     then
       LDSHARED_FLAGS="-o libc++.so.1 \
         -qmkshrobj -Wl,-soname,libc++.so.1 \
@@ -158,7 +158,7 @@ case $TRIPLE in
     *-*-mingw*)
         ;;
     *-ibm-*)
-        if [ $hostOS == "linux" ]
+        if [ $hostOS = "linux" ]
         then
            rm -f libc++.so
            ln -s libc++.so.1 libc++.so





More information about the cfe-commits mailing list