diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find-wish.app.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/find-wish.app.sh b/scripts/find-wish.app.sh new file mode 100755 index 00000000..2e9e48f8 --- /dev/null +++ b/scripts/find-wish.app.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/.. +cd $cvs_root_dir +cvs_root_dir=`pwd` + +TCLTK=`/bin/ls -1r ${cvs_root_dir}/packages/darwin_app/TclTkAquaStandalone-8.?.*.dmg|head -n 1|sed 's|.*/\(.*\)\.dmg|\1|'` + +if [ "x${TCLTK}" != "x" ]; then + test -d /Volumes/${TCLTK} || \ + hdiutil mount ${cvs_root_dir}/packages/darwin_app/${TCLTK}.dmg + echo "/Volumes/${TCLTK}" +else + if [ -d "/Library/Frameworks/Tk.framework/Resources" ]; then + echo "/Library/Frameworks/Tk.framework/Resources" + else + if [ -d "/System/Library/Frameworks/Tk.framework/Resources" ]; then + echo "/System/Library/Frameworks/Tk.framework/Resources" + fi + fi +fi + +exit + |