Mercurial > hg > mxe-octave-anirudha
comparison darwin_files/launch_octave.sh @ 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 |
comparison
equal
deleted
inserted
replaced
3233:36f223faf601 | 3234:f9c5235c5688 |
---|---|
23 fi | 23 fi |
24 ROOT="$(dirname "${ROOT}")" | 24 ROOT="$(dirname "${ROOT}")" |
25 | 25 |
26 "${ROOT}/bin/octave" | 26 "${ROOT}/bin/octave" |
27 | 27 |
28 VER_DIR=`find ${ROOT}/Contents/Resources/share -name 3.7.5` | |
29 VER=`basename ${VER_DIR}` | |
30 | |
28 # Use AppleScript to kill the icon in the dock. | 31 # Use AppleScript to kill the icon in the dock. |
29 # FIXME - how to replace "Octave-3.7.0+" with "Octave-$VER" | |
30 osascript 2>&1>/dev/null <<EOF | 32 osascript 2>&1>/dev/null <<EOF |
31 tell application "Octave-3.7.0+" | 33 tell application "Octave-${VER}" |
32 quit | 34 quit |
33 end tell | 35 end tell |
34 EOF | 36 EOF |