diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-17 13:07:13 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-05-17 13:25:34 +0200 |
commit | 3b5d4ef8cdf8d256307f08090c9a3dbb7c558dc2 (patch) | |
tree | 025ba0736b1b88e37b76afcd37a01d05b53c695a | |
parent | 1004f525d08b7b4d1bc18f041552d85f869fcd34 (diff) |
make "run-uninstalled" not rely on to be called from topdir
run-uninstalled relies on to be called from the topdir of the project.
This patch detects the path run-uninstalled is called from, sets
bustle_datadir and calls bustle.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rwxr-xr-x | run-uninstalled.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/run-uninstalled.sh b/run-uninstalled.sh index ea7ef6f..e1d31c0 100755 --- a/run-uninstalled.sh +++ b/run-uninstalled.sh @@ -1,2 +1,6 @@ #!/bin/sh -bustle_datadir=. ./dist/build/bustle/bustle "$@" + +bustle_datadir="$(dirname ${0}})" +export bustle_datadir + +exec "${bustle_datadir}"/dist/build/bustle/bustle "${@}" |