1557 posts
|
Author: piumarta
Date: 2010-04-10 20:14:15 -0700 (Sat, 10 Apr 2010)
New Revision: 2186
Modified:
trunk/platforms/unix/cmake/squeak.sh.in
Log:
find path to binary using pwd -p if it appears to be available
Modified: trunk/platforms/unix/cmake/squeak.sh.in
===================================================================
--- trunk/platforms/unix/cmake/squeak.sh.in 2010-04-11 03:12:13 UTC (rev 2185)
+++ trunk/platforms/unix/cmake/squeak.sh.in 2010-04-11 03:14:15 UTC (rev 2186)
@@ -2,13 +2,15 @@
#
# Launch squeak from a menu, prompting for and/or installing an image
#
-# Last edited: 2009-12-17 10:21:38 by piumarta on ubuntu
+# Last edited: 2010-04-09 04:35:35 by piumarta on ubuntu
PATH=/usr/bin:/bin
+if pwd -P 2>/dev/null 1>&2; then pwd="pwd -P"; else pwd="pwd"; fi
+
me=`basename $0`
bindir=`dirname $0`
-bindir=`cd ${bindir}; pwd`
+bindir=`cd ${bindir}; ${pwd}`
prefix=`dirname ${bindir}`
libdir="${prefix}/lib/squeak"
vm="squeak"
|