summaryrefslogtreecommitdiff
path: root/run-uninstalled.sh
blob: e7ff277491a97e959ec80a03eb952e88b2cb9dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

root="$(dirname ${0}})"

# Cabal generates code that uses this
bustle_datadir="${root}"
# For Gtk+'s benefit
XDG_DATA_HOME=$bustle_datadir/data
export bustle_datadir XDG_DATA_HOME

bustle="${root}"/dist/build/bustle/bustle

cabal build 1>&2
exec $bustle "${@}"