Editing MacOS X App Octave Shell Script
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
The script below is intended to be part of a [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|MacOS X App bundle for Octave]]. This script is called by the [[MacOS_X_App_Launcher_Script|App launcher script]]. The script is responsible for initializing the shell environment and running Octave. | The script below is intended to be part of a [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|MacOS X App bundle for Octave]]. This script is called by the [[MacOS_X_App_Launcher_Script|App launcher script]]. The script is responsible for initializing the shell environment and running Octave. | ||
Line 26: | Line 24: | ||
VER="3.7.0+" | VER="3.7.0+" | ||
if [ -L "$0" ] ; then | if [ -L "$0" ] ; then | ||
ROOT="$(dirname $(readlink - | ROOT="$(dirname $(readlink -f "$0"))" | ||
else | else | ||
ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)" | ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)" | ||
Line 173: | Line 171: | ||
end tell | end tell | ||
EOF</nowiki> | EOF</nowiki> | ||