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
19 dosbox
"$HOME"/.stargunner
/STARGUN.EXE
-conf "$HOME"/.stargunner
/dosbox.conf
-exit "$@"