summarylogtreecommitdiffstats
path: root/daphne.sh
blob: e7d3d7131d29834a502ea86b7f259d4d8512f448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

if [ ! -e $HOME/.daphne ]; then
  echo "Running Daphne for the first time..."
  echo "Copy your framefiles/roms/mpegs to the corresponding folders"
  echo "within $HOME/.daphne and reference them from the command-line."
  echo "Ex: daphne lair vldp -framefile '~/.daphne/framefile/lair.txt'"
  mkdir $HOME/.daphne
  mkdir $HOME/.daphne/{roms,mpegs}
  cp -R /usr/share/daphne/roms/* $HOME/.daphne/roms/
  cd /usr/share/daphne
  ./daphne "$@"
else
  export PATH=/usr/share/daphne:$PATH
  cd /usr/share/daphne
  ./daphne "$@"
fi