aboutsummaryrefslogtreecommitdiff
path: root/scripts/find-wish.app.sh
blob: 6ea50da95e9cd533d0b108d3389e21128e480e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

cvs_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/..
cd $cvs_root_dir
cvs_root_dir=`pwd`

TCLTK="$1"

if [ "x${TCLTK}" != "x" ]; then
	 test -d /Volumes/${TCLTK} || \
		  hdiutil mount -quiet ${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