Changeset 144590 for trunk/dports/math


Ignore:
Timestamp:
Jan 13, 2016, 9:40:56 AM (4 years ago)
Author:
mcalhoun@…
Message:

octave-devel, octave-devel-rc, octave-devel-release: tweak application bundle to call osascript in sharp-bang line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/octave-devel/Portfile

    r144589 r144590  
    3030if { ${name} eq ${subport} } {
    3131    version         ${version_tip}
    32     revision        1
     32    revision        2
    3333    hg.tag          5a340d8458d6
    3434
     
    4343subport octave-devel-rc {
    4444    version         ${version_rc}
    45     revision        2
     45    revision        3
    4646    hg.tag          20b17dda0e0c
    4747
     
    6868subport octave-devel-release {
    6969    version         ${version_release}
    70     revision        2
     70    revision        3
    7171    hg.tag          3ccc2d02e64b
    7272
     
    483483
    484484        set script [open "${worksrcpath}/${appName}/Contents/MacOS/Octave" w 0755]
    485         puts ${script} "#!/bin/sh"
    486         puts ${script} ""
    487485        if { [variant_isset qt4gui] } {
     486            puts ${script} "#!/bin/sh"
     487            puts ${script} ""
    488488            puts ${script} "${prefix}/bin/octave-${version} --force-gui"
    489489        } else {
    490             puts ${script} "/usr/bin/osascript -e 'tell application \"Terminal\" to do script \"${prefix}/bin/octave-${version}  --no-gui-libs; exit\"'"
     490            puts ${script} "#!/usr/bin/osascript"
     491            puts ${script} ""
     492            puts ${script} "tell application \"Terminal\" to do script \"${prefix}/bin/octave-${version} --no-gui-libs; exit\""
    491493        }
    492494        close ${script}
Note: See TracChangeset for help on using the changeset viewer.