aboutsummaryrefslogtreecommitdiff
path: root/scripts/find-wish.app.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-28 05:44:41 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-28 05:44:41 +0000
commit57260bba8692c3c0ff32380203b3f4c1ad95c8de (patch)
tree2adbd1c9854947b2ebf681fa7966c7ab3fe65b24 /scripts/find-wish.app.sh
parent8e23ebf9a66d312e6c9d4479617f04edf86f3f45 (diff)
fixed up the tracking down of the Wish.app to support both Mac OS X/Intel and the auto-builds
svn path=/trunk/; revision=5420
Diffstat (limited to 'scripts/find-wish.app.sh')
-rwxr-xr-xscripts/find-wish.app.sh24
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
+