Mercurial > hg > mxe-octave-anirudha
changeset 3234:f9c5235c5688
[Darwin] Determine version of Octave
author | Anirudha Bose <ani07nov@gmail.com> |
---|---|
date | Tue, 24 Sep 2013 00:27:28 +0530 |
parents | 36f223faf601 |
children | f53543bd5dd6 |
files | darwin_files/launch_octave.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/darwin_files/launch_octave.sh +++ b/darwin_files/launch_octave.sh @@ -25,10 +25,12 @@ "${ROOT}/bin/octave" +VER_DIR=`find ${ROOT}/Contents/Resources/share -name 3.7.5` +VER=`basename ${VER_DIR}` + # Use AppleScript to kill the icon in the dock. -# FIXME - how to replace "Octave-3.7.0+" with "Octave-$VER" osascript 2>&1>/dev/null <<EOF - tell application "Octave-3.7.0+" + tell application "Octave-${VER}" quit end tell EOF