Ignore:
Timestamp:
May 7, 2010, 4:17:33 AM (10 years ago)
Author:
ryandesign@…
Message:

minivmac, minivmac-devel: ensure the bootstrap app always gets quit

Location:
trunk/dports/emulators
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/minivmac-devel/Portfile

    r67330 r67387  
    236236   
    237237    # Launch the bootstrap Mini vMac so the configure script can talk to it.
    238     my_system "open '${worksrcpath}/${my_bootstrap_app}'"
     238    global my_bootstrap_pid
     239    if {[catch {exec "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" &} my_bootstrap_pid]} {
     240        return -code error "couldn't launch bootstrap"
     241    }
    239242}
    240243
     
    245248
    246249post-configure {
     250    # Kill the bootstrap Mini vMac.
     251    global my_bootstrap_pid
     252    exec kill ${my_bootstrap_pid}
     253   
    247254    file mkdir ${build.dir}
    248255    set my_variation_dirs {}
  • trunk/dports/emulators/minivmac-devel/files/configure.applescript.in

    r67330 r67387  
    3333        my key_code(32) -- "U" -- select the untitled output disk
    3434        my menu_file_put_away() -- eject the output disk
    35        
    36         activate application "@BOOTSTRAP_APP@"
    37         tell application "System Events"
    38                 tell process "Mini vMac"
    39                         key down control -- open Mini vMac control menu
    40                         my key_code(12) -- "Q" -- quit
    41                         my key_code(16) -- "Y" -- yes, really quit
    42                         key up control -- close Mini vMac control menu
    43                 end tell
    44         end tell
    4535       
    4636        return "Variations: " & number_of_variations & ". CPU speed: " & (round cpu_mhz rounding up) & " MHz. Configuration delay: " & ((round configuration_delay * 100 rounding up) / 100) & " seconds."
  • trunk/dports/emulators/minivmac/Portfile

    r67221 r67387  
    228228   
    229229    # Launch the bootstrap Mini vMac so the configure script can talk to it.
    230     my_system "open '${worksrcpath}/${my_bootstrap_app}'"
     230    global my_bootstrap_pid
     231    if {[catch {exec "${worksrcpath}/${my_bootstrap_app}/Contents/MacOS/minivmac" &} my_bootstrap_pid]} {
     232        return -code error "couldn't launch bootstrap"
     233    }
    231234}
    232235
     
    237240
    238241post-configure {
     242    # Kill the bootstrap Mini vMac.
     243    global my_bootstrap_pid
     244    exec kill ${my_bootstrap_pid}
     245   
    239246    file mkdir ${build.dir}
    240247    set my_variation_dirs {}
  • trunk/dports/emulators/minivmac/files/configure.applescript.in

    r61503 r67387  
    3333        my key_code(32) -- "U" -- select the untitled output disk
    3434        my menu_file_put_away() -- eject the output disk
    35        
    36         activate application "@BOOTSTRAP_APP@"
    37         tell application "System Events"
    38                 tell process "Mini vMac"
    39                         key down control -- open Mini vMac control menu
    40                         my key_code(12) -- "Q" -- quit
    41                         my key_code(16) -- "Y" -- yes, really quit
    42                         key up control -- close Mini vMac control menu
    43                 end tell
    44         end tell
    4535       
    4636        return "Variations: " & number_of_variations & ". CPU speed: " & (round cpu_mhz rounding up) & " MHz. Configuration delay: " & ((round configuration_delay * 100 rounding up) / 100) & " seconds."
Note: See TracChangeset for help on using the changeset viewer.