diff options
author | Mark Vainomaa | 2015-08-12 15:15:29 +0300 |
---|---|---|
committer | Mark Vainomaa | 2015-08-12 15:15:29 +0300 |
commit | b33aea52c3246bf3879072fc600953b4c11e324a (patch) | |
tree | 2f93e1fe070751807950c3e3ce98cc467e307dee /openarena-runner.sh | |
download | aur-b33aea52c3246bf3879072fc600953b4c11e324a.tar.gz |
Initial commit
Diffstat (limited to 'openarena-runner.sh')
-rw-r--r-- | openarena-runner.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/openarena-runner.sh b/openarena-runner.sh new file mode 100644 index 000000000000..cc9b578d3d37 --- /dev/null +++ b/openarena-runner.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +arch=$(uname -m) +if [ "$arch" == 'x86_64' ]; then + arch="x86_64" +else + arch="i386" +fi + +file=`basename "$0"` +if [ "$file" == 'openarena' ]; then + file='openarena' +else + file='oa_ded' +fi +cd '/opt/openarena' + +# Comment by syrjala +# openarena-runner.sh should pass on the command line options. I just banged my +# head against the wall for a while trying to figure out why my command line +# options didn't do anything. +# So, here it is +"./${file}.${arch}" $@ |