git repos / blockattack-game

blame: source/misc/standalone/blockattack_standalone_launcher

normal view · raw

ab86a00f sago007 2017-08-31 19:08 1
#!/bin/bash
ab86a00f sago007 2017-08-31 19:08 2
ab86a00f sago007 2017-08-31 19:08 3
# Move to script's directory
ab86a00f sago007 2017-08-31 19:08 4
cd "`dirname "$0"`"
ab86a00f sago007 2017-08-31 19:08 5
ab86a00f sago007 2017-08-31 19:08 6
# Get the kernel/architecture information
ab86a00f sago007 2017-08-31 19:08 7
ARCH=`uname -m`
ab86a00f sago007 2017-08-31 19:08 8
ab86a00f sago007 2017-08-31 19:08 9
# Set the libpath and pick the proper binary
ab86a00f sago007 2017-08-31 19:08 10
if [ "$ARCH" == "x86_64" ]; then
ab86a00f sago007 2017-08-31 19:08 11
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/
ab86a00f sago007 2017-08-31 19:08 12
    ./x86_64/blockattack "$@"
ab86a00f sago007 2017-08-31 19:08 13
else
7ebf9785 sago007 2017-09-02 10:51 14
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/
7ebf9785 sago007 2017-09-02 10:51 15
    ./x86/blockattack "$@"
ab86a00f sago007 2017-08-31 19:08 16
fi
1970-01-01 00:00 17