updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / rebelassault / librebelassault.sh
blob5c0dd43f46b407d0711ed02ea6d1b0d07f9551b3
1 rebelassault.run() {
2 local APP_NAME="rebelassault"
3 local APP_DIR="${XDG_DATA_HOME}/${APP_NAME}"
4 local APP_DISK="/usr/share/games/${APP_NAME}"
5 local DOSBOX_CONF="${XDG_CONFIG_HOME}/${APP_NAME}/$(basename $(dosbox -printconf))"
6 local __firstRun=false
8 if [ ! -f "${DOSBOX_CONF}" ]; then
9 install -Dm644 $(dosbox -printconf) "${DOSBOX_CONF}"
12 if [ ! -d "${APP_DIR}" ]; then
13 __firstRun=true
16 mkdir -p "${APP_DIR}" &&
17 cd "${APP_DIR}" &&
18 "$@"
21 rebelassault.firstRun() {
22 "${__firstRun}"