1,848
edits
No edit summary |
(Mark as outdated.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{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. | 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 | ||
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]] |