fixed execution order bug that was causing the first two frame numbers to output...
[puredata.git] / scripts / find-wish.app.sh
blob6ea50da95e9cd533d0b108d3389e21128e480e21
1 #!/bin/sh
3 cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
4 cd $cvs_root_dir
5 cvs_root_dir=`pwd`
7 TCLTK="$1"
9 if [ "x${TCLTK}" != "x" ]; then
10 test -d /Volumes/${TCLTK} || \
11 hdiutil mount -quiet ${cvs_root_dir}/packages/darwin_app/${TCLTK}.dmg
12 echo "/Volumes/${TCLTK}"
13 else
14 if [ -d "/Library/Frameworks/Tk.framework/Resources" ]; then
15 echo "/Library/Frameworks/Tk.framework/Resources"
16 else
17 if [ -d "/System/Library/Frameworks/Tk.framework/Resources" ]; then
18 echo "/System/Library/Frameworks/Tk.framework/Resources"