#!/bin/sh

# Change to game directory
CANONPATH=`readlink -f "$0"`
cd "`dirname "$CANONPATH"`"

MACHINE=`uname -m`
if [ "$MACHINE" = x86_64 ]
then
	echo "OSMOS DEMO CANNOT RUN!"
	echo "You've installed the 32bit version of the Osmos Demo, but your machine is $MACHINE"
	echo "Find the right version at http://www.hemispheregames.com/osmos/"
	exit 1
else
	BIN=./OsmosDemo.bin32
fi

$BIN $@

e=$?

exit $e
