updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / stargunner / stargunner
blob81532ea702c503f787a4691518772da98f4d43df
1 #!/bin/bash
3 # Before running the game for the first time, some stuff needs to be done.
5 # Set some symlinks and prepare the game environment.
6 if [ ! -d "$HOME"/.stargunner ] ; then
7 mkdir "$HOME"/.stargunner || exit 1
8 ln -s /usr/share/stargunner/STARGUN.EXE "$HOME"/.stargunner/STARGUN.EXE || exit 1
9 ln -s /usr/share/stargunner/SETUP.EXE "$HOME"/.stargunner/SETUP.EXE || exit 1
10 ln -s /usr/share/stargunner/STARGUN.DLT "$HOME"/.stargunner/STARGUN.DLT || exit 1
13 # Individual Dosbox config file
14 if [ ! -f "$HOME"/.stargunner/dosbox.conf ] ; then
15 cp /usr/share/stargunner/dosbox.conf.dist "$HOME"/.stargunner/dosbox.conf || exit 1
18 # Run the game
19 dosbox "$HOME"/.stargunner/STARGUN.EXE -conf "$HOME"/.stargunner/dosbox.conf -exit "$@"