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

pkgname=diablorl
if [[ ! -d "$HOME/.$pkgname" ]]; then
  mkdir -p "$HOME/.$pkgname"
  # link static files
  ln -s /opt/$pkgname/font10x18.png "$HOME/.$pkgname/"
  ln -s /opt/$pkgname/diablorl.mpq "$HOME/.$pkgname/"
  ln -s /opt/$pkgname/rl "$HOME/.$pkgname/"

  # copy editable files
  cp /opt/$pkgname/config.lua "$HOME/.$pkgname/"
  cp /opt/$pkgname/keybindings.lua "$HOME/.$pkgname/"
fi

cd "$HOME/.$pkgname"
exec ./rl "$@"