#!/bin/sh
set -e

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

bustle_datadir="${root}"
export bustle_datadir

LD_LIBRARY_PATH="${root}/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH

bustle="${root}"/bin/bustle

exec $bustle "${@}"

#!/bin/sh
set -e

root="$(dirname $(readlink -f ${0}))"

bustle_datadir="${root}"
export bustle_datadir

LD_LIBRARY_PATH="${root}/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH

bustle="${root}"/bin/bustle

exec $bustle "${@}"

Make launcher script work when symlinked.
Make launcher script work when symlinked.

Previously, if you unzipped the binary package to (say) ~, and then ran

  ln -s ~/bustle-0.4.0-x86_64/bustle.sh ~/bin/bustle

then running ~/bin/bustle would fail:

  /home/cassidy/bin/bustle: ligne14: /home/cassidy/bin/bin/bustle: Aucun
  fichier ou dossier de ce type

Running `readlink -f` on ${0} makes this work.
