diff options
author | B. Watson <yalhcru@gmail.com> | 2017-04-15 23:35:29 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-22 08:10:38 +0700 |
commit | 99f2d5bf816ab4505216af97606c6b4b6b3b93c7 (patch) | |
tree | df7291f9b50520872d598bc705ef4671f56ee540 /games/asteroidsinfinity/asteroidsinfinity.sh | |
parent | e2856e589416e4f6285256b500f0767c847b50dc (diff) |
games/asteroidsinfinity: Added (clone of classic arcade game).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/asteroidsinfinity/asteroidsinfinity.sh')
-rw-r--r-- | games/asteroidsinfinity/asteroidsinfinity.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games/asteroidsinfinity/asteroidsinfinity.sh b/games/asteroidsinfinity/asteroidsinfinity.sh new file mode 100644 index 0000000000000..708db00c9181b --- /dev/null +++ b/games/asteroidsinfinity/asteroidsinfinity.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# SBo wrapper script for asteroidsinfinity, by B. Watson. +# Licensed under the WTFPL. + +SHAREDIR=/usr/share/games/asteroidsinfinity +HOMEDIR=$HOME/.asteroidsinfinity + +set -e + +mkdir -p $HOMEDIR +cd $HOMEDIR +for src in $SHAREDIR/*; do + dst="$( basename $src )" + [ -e "$dst" ] || ln -s "$src" "$dst" +done + +exec python ./AsteroidsInfinity.py "$@" |