summaryrefslogtreecommitdiff
path: root/games/asteroidsinfinity/asteroidsinfinity.sh
blob: 708db00c9181be1624d8bdc9fe68ce6037480f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 "$@"