blob: 2e9e48f825a444e8a3d499a688d352b156676163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|