[135582] trunk/dports/emulators

ryandesign at macports.org ryandesign at macports.org
Sun Apr 26 18:40:59 PDT 2015


Revision: 135582
          https://trac.macports.org/changeset/135582
Author:   ryandesign at macports.org
Date:     2015-04-26 18:40:59 -0700 (Sun, 26 Apr 2015)
Log Message:
-----------
minivmac, minivmac-devel: use eq and ne instead of == and != for string comparisons

Modified Paths:
--------------
    trunk/dports/emulators/minivmac/Portfile
    trunk/dports/emulators/minivmac-devel/Portfile

Modified: trunk/dports/emulators/minivmac/Portfile
===================================================================
--- trunk/dports/emulators/minivmac/Portfile	2015-04-26 21:02:24 UTC (rev 135581)
+++ trunk/dports/emulators/minivmac/Portfile	2015-04-27 01:40:59 UTC (rev 135582)
@@ -115,7 +115,7 @@
 }
 
 pre-extract {
-    if {"" == [my_real_rom_file]} {
+    if {[my_real_rom_file] eq ""} {
         ui_msg "****************************************************************"
         ui_msg "To build Mini vMac, you will need a ROM file from a Macintosh"
         ui_msg "Plus or 512Ke. And to run it, you need a ROM file from the type"
@@ -159,7 +159,7 @@
     foreach {my_image_filename my_image_offset my_image_sha256} ${my_images} {
         ui_debug "Extracting ${my_image_filename} from ${my_system_disk_container_decompressed}."
         system -W ${worksrcpath} "dd if='${my_system_disk_container_decompressed}' bs=4 count=368661 skip=${my_image_offset} of='${my_image_filename}'"
-        if {${my_image_sha256} != [sha256 file ${worksrcpath}/${my_image_filename}]} {
+        if {${my_image_sha256} ne [sha256 file ${worksrcpath}/${my_image_filename}]} {
             return -code error "extract failed"
         }
     }
@@ -285,7 +285,7 @@
     # If no variation directories were produced by configuration, either the flags we
     # passed in were bad, or the automation script got out of sync with the emulator;
     # if the latter, the delays in configure.applescript may need to be adjusted.
-    if {"" == ${my_variation_dirs}} {
+    if {${my_variation_dirs} eq ""} {
         return -code error "configuration failed!"
     }
 }

Modified: trunk/dports/emulators/minivmac-devel/Portfile
===================================================================
--- trunk/dports/emulators/minivmac-devel/Portfile	2015-04-26 21:02:24 UTC (rev 135581)
+++ trunk/dports/emulators/minivmac-devel/Portfile	2015-04-27 01:40:59 UTC (rev 135582)
@@ -129,7 +129,7 @@
 }
 
 pre-extract {
-    if {"" == [my_real_rom_file]} {
+    if {[my_real_rom_file] eq ""} {
         ui_msg "****************************************************************"
         ui_msg "To build Mini vMac, you will need a ROM file from a Macintosh"
         ui_msg "Plus or 512Ke. And to run it, you need a ROM file from the type"
@@ -173,7 +173,7 @@
     foreach {my_image_filename my_image_offset my_image_sha256} ${my_images} {
         ui_debug "Extracting ${my_image_filename} from ${my_system_disk_container_decompressed}."
         system -W ${worksrcpath} "dd if='${my_system_disk_container_decompressed}' bs=4 count=368661 skip=${my_image_offset} of='${my_image_filename}'"
-        if {${my_image_sha256} != [sha256 file ${worksrcpath}/${my_image_filename}]} {
+        if {${my_image_sha256} ne [sha256 file ${worksrcpath}/${my_image_filename}]} {
             return -code error "extract failed"
         }
     }
@@ -290,7 +290,7 @@
     # If no variation directories were produced by configuration, either the flags we
     # passed in were bad, or the automation script got out of sync with the emulator;
     # if the latter, the delays in configure.applescript may need to be adjusted.
-    if {"" == ${my_variation_dirs}} {
+    if {${my_variation_dirs} eq ""} {
         return -code error "configuration failed!"
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150426/3e16d62b/attachment.html>


More information about the macports-changes mailing list