Skip to content

Instantly share code, notes, and snippets.

@fasterthanlime
Forked from nddrylliog/OpenHexagon
Created March 24, 2016 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fasterthanlime/c4be29f001ae8b6390af to your computer and use it in GitHub Desktop.
Save fasterthanlime/c4be29f001ae8b6390af to your computer and use it in GitHub Desktop.
OpenHexagon launcher by flibitijibibo
#!/bin/bash
# Open Hexagon Shell Script
# Written by Ethan "flibitijibibo" Lee
# Move to script's directory
cd "`dirname "$0"`"
# Get the kernel/architecture information
UNAME=`uname`
ARCH=`uname -m`
# Set the libpath and pick the proper binary
if [ "$UNAME" == "Darwin" ]; then
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/
./osx/openhexagon.osx $@
elif [ "$UNAME" == "Linux" ]; then
if [ "$ARCH" == "x86_64" ]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/
./x86_64/openhexagon.x86_64 $@
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/
./x86/openhexagon.x86 $@
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment