summarylogtreecommitdiffstats
path: root/opendune.sh
blob: 060e5271b2f127a43a510e23a17425a37833f892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# OpenDUNE launcher // carstene1ns 2013
#
# Does some juggling with the data files and path

[ ! -d $HOME/.opendune/data ] && mkdir -p $HOME/.opendune/data

if [ ! -f $HOME/.opendune/data/put_dune2_here.cfg ]; then

  cp /opt/opendune/data/put_dune2_here.txt $HOME/.opendune/data/

fi

if [ -f $HOME/.opendune/data/dune.pak ]; then

  cd $HOME/.opendune
  /opt/opendune/opendune "$@"
  cd - &>/dev/null

else

  echo "Please place Dune II data files in \"$HOME/.opendune/data\"."

fi