#!/bin/bash

# A script to run sparklet. It sets up the enviroment so that
# sparkelt-bin can find shared libraries.

cd "$(dirname $(tr '\0' '*' < /proc/$$/cmdline | cut -d'*' -f2))"
export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
export ALLEGRO_MODULES=allegro
exec ./sparklet-bin $@

