[etoys-dev] [SVN][732] Etoys-To-Go: fall back to Linux-i686 binary if no OS-specific found
commits at etoys.squeak.org
commits at etoys.squeak.org
Fri May 20 10:38:09 EDT 2011
Repository: http://etoys.squeak.org/svn
Revision: 732
Author: bf
Date: 2011-05-20 14:38:07 +0000 (Fri, 20 May 2011)
Log Message:
-----------
Etoys-To-Go: fall back to Linux-i686 binary if no OS-specific found
Modified Paths:
--------------
trunk/VM/to-go/etoys.sh
-------------- next part --------------
Modified: trunk/VM/to-go/etoys.sh
===================================================================
--- trunk/VM/to-go/etoys.sh 2011-05-19 11:06:33 UTC (rev 731)
+++ trunk/VM/to-go/etoys.sh 2011-05-20 14:38:07 UTC (rev 732)
@@ -10,6 +10,7 @@
OS=`uname -s`
CPU=`uname -m`
BIN="$APP/Contents/$OS-$CPU"
+[ -d "$BIN" ] || BIN="$APP/Contents/Linux-i686"
VM="$BIN/etoys"
VMOPTIONS="-encoding UTF-8"
IMAGE="$APP/Contents/Resources/etoys.image"
@@ -63,7 +64,7 @@
chmod -R a+x "$BIN" 2>/dev/null
fi
if [ ! -x "$VM" ] ; then
- TMPBIN=`mktemp -t -d etoys-to-go-XXXXX` || TMPBIN="${TMPDIR:-/tmp}/etoys-to-go$$.d" && mkdir -p "$TMPBIN"
+ TMPBIN=`mktemp -d -t etoys-to-go-XXXXX` || TMPBIN="${TMPDIR:-/tmp}/etoys-to-go$$.d" && mkdir -p "$TMPBIN"
mkdir -p "$TMPBIN"
TMPFILES=`cd "$BIN";ls`
(cd "$BIN"; cp $TMPFILES "$TMPBIN")
More information about the etoys-dev
mailing list