mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
25 lines
462 B
Text
25 lines
462 B
Text
|
#!/bin/sh
|
||
|
|
||
|
# Silly wrapper script for transfusion, by B. Watson
|
||
|
|
||
|
set -e
|
||
|
|
||
|
case "$0" in
|
||
|
*-dedicated)
|
||
|
GAME=dedicated
|
||
|
;;
|
||
|
*)
|
||
|
GAME=glx
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
# You can override these in the environment, if you have multiple
|
||
|
# versions of transfusion installed.
|
||
|
|
||
|
TF_VERSION=${TF_VERSION:-@VERSION@}
|
||
|
TF_GAMEDIR=${TF_GAMEDIR:-/usr/share/games/transfusion-$TF_VERSION}
|
||
|
TF_BIN=${TF_BIN:-/usr/libexec/transfusion-$TF_VERSION/transfusion-$GAME}
|
||
|
|
||
|
cd $TF_GAMEDIR
|
||
|
exec $TF_BIN "$@"
|