#!/bin/bash

OS=`uname`

case $OS in
"Darwin")
	BINNAME=osx32/vrcmd_osx
	export DYLD_LIBRARY_PATH=$PWD/osx32:$DYLD_LIBRARY_PATH
	;;
"Linux")
	BINNAME=linux32/vrcmd_linux
	export LD_LIBRARY_PATH=$PWD/linux32:$LD_LIBRARY_PATH
	;;
*)
	echo "Can't find right openvr binary, fix the script."
	exit -1
	;;
esac

$BINNAME "$@"
