#!/bin/sh

set -e
userdir="${XDG_DATA_HOME:-$HOME/.local/share}/Brogue"
mkdir -p "$userdir"
cd "$userdir"
exec %%PREFIX%%/libexec/brogue "$@"
