[svn:parrot] r37756 - trunk/tools/dev

allison at svn.parrot.org allison at svn.parrot.org
Fri Mar 27 18:24:48 UTC 2009


Author: allison
Date: Fri Mar 27 18:24:46 2009
New Revision: 37756
URL: https://trac.parrot.org/parrot/changeset/37756

Log:
[cage] Use more portable comparison operator. Thanks to Havard Eidnes
for the patch. Closes TT #513.

Modified:
   trunk/tools/dev/mk_native_pbc

Modified: trunk/tools/dev/mk_native_pbc
==============================================================================
--- trunk/tools/dev/mk_native_pbc	Fri Mar 27 16:59:19 2009	(r37755)
+++ trunk/tools/dev/mk_native_pbc	Fri Mar 27 18:24:46 2009	(r37756)
@@ -37,16 +37,16 @@
 # 8 or 12 or 16 on intel
 numvalsize=$(./parrot_config numvalsize)
 
-if [ "$ptrsize" == "4" ]
+if [ "$ptrsize" = "4" ]
 then
-    if [ "$byteorder" == "1234" ]
+    if [ "$byteorder" = "1234" ]
     then
-        if [ "$numvalsize" == "12" ]
+        if [ "$numvalsize" = "12" ]
         then
             N=2
             echo "2: i386 32-bit opcode_t, 32-bit intval, 12-byte long double"
         else
-            if [ "$numvalsize" == "4" ]
+            if [ "$numvalsize" = "4" ]
             then
                 N=8
                 echo "8: i386 32-bit opcode_t, 32-bit intval, 4-byte float"
@@ -60,13 +60,13 @@
             fi
         fi
     else
-        if [ "$byteorder" == "4321" ]
+        if [ "$byteorder" = "4321" ]
         then
             N=3
             echo "3: PPC BE 32 bit opcode_t, 32 bit intval"
         else
-            if [ "$byteorder" == "12345678" \
-                 -a "$(./parrot_config osname)" == "cygwin" ]
+            if [ "$byteorder" = "12345678" \
+                 -a "$(./parrot_config osname)" = "cygwin" ]
             then
                 echo "1: cygwin use64bitint"
                 N=1
@@ -78,11 +78,11 @@
         fi
     fi
 else
-    if [ "$ptrsize" == "8" ]
+    if [ "$ptrsize" = "8" ]
     then
-        if [ "$byteorder" == "12345678" ]
+        if [ "$byteorder" = "12345678" ]
         then
-            if [ "$numvalsize" == "8" ]
+            if [ "$numvalsize" = "8" ]
             then
                 N=4
                 echo "4: x86_64 double float 64 bit opcode_t, 8-byte double"
@@ -95,7 +95,7 @@
                 echo "5: x86_64 64 bit opcode_t, 16-byte long double"
             fi
         else
-            if [ "$numvalsize" == "8" ]
+            if [ "$numvalsize" = "8" ]
             then
                 N=6
                 echo "6: big-endian 64-bit"
@@ -139,8 +139,8 @@
     perl t/harness t/native_pbc/number.t && \
     perl t/harness t/native_pbc/string.t
 
-if [ "$enable_long_double" == "1" ]; then
-    if [ "$1" == "--noconf" ]; then
+if [ "$enable_long_double" = "1" ]; then
+    if [ "$1" = "--noconf" ]; then
       echo "Hmm. You have no long double, and we want to try --floatval=long double"
       echo "However for this you must reconfigure your parrot and you gave --noconf"
       exit
@@ -151,8 +151,8 @@
     make -s || exit 1
     hugefloatvalsize=$(./parrot_config hugefloatvalsize)
     numvalsize=$(./parrot_config numvalsize)
-    #if [ "hugefloatvalsize" == "12" ]; then echo "Only 12 byte long double. Sorry"; exit; fi
-    #if [ "numvalsize" == "12" ]; then echo "Only 12 byte double. Sorry"; exit; fi
+    #if [ "hugefloatvalsize" = "12" ]; then echo "Only 12 byte long double. Sorry"; exit; fi
+    #if [ "numvalsize" = "12" ]; then echo "Only 12 byte double. Sorry"; exit; fi
     # 1+2, 4+5, 6+7
     M=$((N+1))
     [ -e t/op/number_1.pasm ] || perl t/harness t/op/number.t


More information about the parrot-commits mailing list