aboutsummaryrefslogtreecommitdiff
path: root/games/clonekeen/clonekeen.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-04-16 21:50:57 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:07 +0200
commita9bd826f2222adb1fa3d04aa3ee9369d62ea4acc (patch)
treee8ee58bcd5634a78e0d30e2829f6b353736e5193 /games/clonekeen/clonekeen.sh
parent2420f03c14cbc8fc2d11fceefbe4d10dbb80aa44 (diff)
games/clonekeen: Added (open source engine for Commander Keen)
Diffstat (limited to 'games/clonekeen/clonekeen.sh')
-rw-r--r--games/clonekeen/clonekeen.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/clonekeen/clonekeen.sh b/games/clonekeen/clonekeen.sh
new file mode 100644
index 0000000000000..e189070a09358
--- /dev/null
+++ b/games/clonekeen/clonekeen.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+GAME=clonekeen
+HOMEDIR=~/.$GAME
+mkdir -p $HOMEDIR
+cd $HOMEDIR
+if [ -e defaultargs ]; then
+ ARGS="`cat defaultargs`"
+fi
+ln -s /usr/share/games/$GAME/* . &>/dev/null || true
+exec $GAME-bin "$@" $ARGS