MacOS X App Launcher Script: Difference between revisions

Update to script included in Octave-X86_64-3.7.0+v3.dmg
No edit summary
(Update to script included in Octave-X86_64-3.7.0+v3.dmg)
Line 19: Line 19:
ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)"
ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)"


open -F -a Terminal "${ROOT}/bin/octave"</nowiki>
if [[ $OSTYPE = "darwin9.0" ]]; then
  exit
elif [[ $OSTYPE = "darwin10.0" ]]; then
  open -a Terminal "${ROOT}/bin/octave"
elif [[ $OSTYPE = "darwin11" ]]; then
  open -F -a Terminal "${ROOT}/bin/octave"
else
  open -F -a Terminal "${ROOT}/bin/octave"
fi</nowiki>
364

edits