MacOS X App Octave Shell Script: Difference between revisions
Jump to navigation
Jump to search
(Update to properly setup the environment for AquaTerm, Gnuplot, and Ghostscript. This version has been tested on a Mac running 10.7 with no Fink or Macports installed) |
(The readlink command is valid Linux syntax but does not work on MacOS. Replace the "readlink -f" with "read link -n") |
||
Line 24: | Line 24: | ||
VER="3.7.0+" | VER="3.7.0+" | ||
if [ -L "$0" ] ; then | if [ -L "$0" ] ; then | ||
ROOT="$(dirname $(readlink - | ROOT="$(dirname $(readlink -n "$0"))" | ||
else | else | ||
ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)" | ROOT="$(cd "$(dirname "$0")" 2>/dev/null && pwd)" |