MacOS X App Launcher Script: Difference between revisions

Jump to navigation Jump to search
Mark as outdated.
No edit summary
(Mark as outdated.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
This shell script below is used to launch the MacOS X Terminal.app which will then run the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]], which will initialize the shell environment and run Octave. The name of the script below is just "script" and is used as the MacOS X App bundle launcher script.
{{Warning|This page is outdated (October 2019). For more information, see [[Octave for macOS]].}}
 
This shell script below is intended to as the launch script for the [[Create_a_MacOS_X_App_Bundle_Using_MacPorts| MacOS X App bundle]] used to launch the MacOS X Terminal.app which will then run the [[MacOS_X_App_Octave_Shell_Script| Octave shell script]], which will initialize the shell environment and run Octave. The name of the script below is just "script" and is used as the MacOS X App bundle launcher script.
  <nowiki>#!/bin/sh
  <nowiki>#!/bin/sh
# Copyright (C) 2007, Thomas Treichl and Paul Kienzle
# Copyright (C) 2007, Thomas Treichl and Paul Kienzle
Line 19: Line 21:
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>
 
[[Category:Outdated pages]]

Navigation menu