2001-10-10 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Wed, 10 Oct 2001 23:05:55 +0000 (23:05 +0000)
committerChris Demetriou <cgd@google.com>
Wed, 10 Oct 2001 23:05:55 +0000 (23:05 +0000)
        * emultempl/elf32.em: Fix shell 'if' usage for portability.

ld/ChangeLog
ld/emultempl/elf32.em

index 448e2e3bbe2bff74c2c0d35dbb2387a22626d628..02f6b74c559df6c0921dbe9192496c48c21c19df 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-10  Chris Demetriou  <cgd@broadcom.com>
+
+       * emultempl/elf32.em: Fix shell 'if' usage for portability.
+
 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
 
        * configure.tgt (targ): Add arm9e-*-elf.
index 105795549a69b32e6ab9b9d361dcfdf25aa8918f..4264b6155ab1e88bfd6c96d66c9ff3d65cf03c78 100644 (file)
@@ -1349,7 +1349,7 @@ echo '  ; else if (link_info.relocateable == true) return' >> e${EMULATION_NAME}
 sed $sc ldscripts/${EMULATION_NAME}.xr                     >> e${EMULATION_NAME}.c
 echo '  ; else if (!config.text_read_only) return'         >> e${EMULATION_NAME}.c
 sed $sc ldscripts/${EMULATION_NAME}.xbn                    >> e${EMULATION_NAME}.c
-if ! cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then
+if cmp -s ldscripts/${EMULATION_NAME}.x ldscripts/${EMULATION_NAME}.xn; then : ; else
 echo '  ; else if (!config.magic_demand_paged) return'     >> e${EMULATION_NAME}.c
 sed $sc ldscripts/${EMULATION_NAME}.xn                     >> e${EMULATION_NAME}.c
 fi