diff options
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 0000000000..708db00c91 --- /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 "$@" |