Ticket #513: patch-ac

File patch-ac, 3.2 KB (added by heidnes, 5 years ago)

Patch undoing the use of == with test, use the standardized = instead

Line 
1$NetBSD: patch-ac,v 1.4 2009/03/25 23:01:48 he Exp $
2
3Undo a GNUism, using == with test in place of =.
4
5--- tools/dev/mk_native_pbc.orig        2009-03-09 05:19:51.000000000 +0100
6+++ tools/dev/mk_native_pbc
7@@ -37,16 +37,16 @@ ptrsize=$(./parrot_config ptrsize)
8 # 8 or 12 or 16 on intel
9 numvalsize=$(./parrot_config numvalsize)
10 
11-if [ "$ptrsize" == "4" ]
12+if [ "$ptrsize" = "4" ]
13 then
14-    if [ "$byteorder" == "1234" ]
15+    if [ "$byteorder" = "1234" ]
16     then
17-        if [ "$numvalsize" == "12" ]
18+        if [ "$numvalsize" = "12" ]
19         then
20             N=2
21             echo "2: i386 32-bit opcode_t, 32-bit intval, 12-byte long double"
22         else
23-            if [ "$numvalsize" == "4" ]
24+            if [ "$numvalsize" = "4" ]
25             then
26                 N=8
27                 echo "8: i386 32-bit opcode_t, 32-bit intval, 4-byte float"
28@@ -60,13 +60,13 @@ then
29             fi
30         fi
31     else
32-        if [ "$byteorder" == "4321" ]
33+        if [ "$byteorder" = "4321" ]
34         then
35             N=3
36             echo "3: PPC BE 32 bit opcode_t, 32 bit intval"
37         else
38-            if [ "$byteorder" == "12345678" \
39-                 -a "$(./parrot_config osname)" == "cygwin" ]
40+            if [ "$byteorder" = "12345678" \
41+                 -a "$(./parrot_config osname)" = "cygwin" ]
42             then
43                 echo "1: cygwin use64bitint"
44                 N=1
45@@ -78,11 +78,11 @@ then
46         fi
47     fi
48 else
49-    if [ "$ptrsize" == "8" ]
50+    if [ "$ptrsize" = "8" ]
51     then
52-        if [ "$byteorder" == "12345678" ]
53+        if [ "$byteorder" = "12345678" ]
54         then
55-            if [ "$numvalsize" == "8" ]
56+            if [ "$numvalsize" = "8" ]
57             then
58                 N=4
59                 echo "4: x86_64 double float 64 bit opcode_t, 8-byte double"
60@@ -95,7 +95,7 @@ else
61                 echo "5: x86_64 64 bit opcode_t, 16-byte long double"
62             fi
63         else
64-            if [ "$numvalsize" == "8" ]
65+            if [ "$numvalsize" = "8" ]
66             then
67                 N=6
68                 echo "6: big-endian 64-bit"
69@@ -139,8 +139,8 @@ perl t/harness t/native_pbc/integer.t &&
70     perl t/harness t/native_pbc/number.t && \
71     perl t/harness t/native_pbc/string.t
72 
73-if [ "$enable_long_double" == "1" ]; then
74-    if [ "$1" == "--noconf" ]; then
75+if [ "$enable_long_double" = "1" ]; then
76+    if [ "$1" = "--noconf" ]; then
77       echo "Hmm. You have no long double, and we want to try --floatval=long double"
78       echo "However for this you must reconfigure your parrot and you gave --noconf"
79       exit
80@@ -151,8 +151,8 @@ if [ "$enable_long_double" == "1" ]; the
81     make -s || exit 1
82     hugefloatvalsize=$(./parrot_config hugefloatvalsize)
83     numvalsize=$(./parrot_config numvalsize)
84-    #if [ "hugefloatvalsize" == "12" ]; then echo "Only 12 byte long double. Sorry"; exit; fi
85-    #if [ "numvalsize" == "12" ]; then echo "Only 12 byte double. Sorry"; exit; fi
86+    #if [ "hugefloatvalsize" = "12" ]; then echo "Only 12 byte long double. Sorry"; exit; fi
87+    #if [ "numvalsize" = "12" ]; then echo "Only 12 byte double. Sorry"; exit; fi
88     # 1+2, 4+5, 6+7
89     M=$((N+1))
90     [ -e t/op/number_1.pasm ] || perl t/harness t/op/number.t