From 57260bba8692c3c0ff32380203b3f4c1ad95c8de Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 28 Jul 2006 05:44:41 +0000 Subject: 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 --- scripts/find-wish.app.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/find-wish.app.sh (limited to 'scripts') 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 + -- cgit v1.2.1