summaryrefslogtreecommitdiffstats
path: root/games/transfusion/transfusion.in
diff options
context:
space:
mode:
Diffstat (limited to 'games/transfusion/transfusion.in')
-rw-r--r--games/transfusion/transfusion.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/games/transfusion/transfusion.in b/games/transfusion/transfusion.in
new file mode 100644
index 0000000000..a498cdae9a
--- /dev/null
+++ b/games/transfusion/transfusion.in
@@ -0,0 +1,24 @@
+#!/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 "$@"