#!/bin/sh

# The default sancho script changes directories before running sancho-bin
# (so it can find the /lib directory) 

# This script adds the lib path to LD_LIBRARY_PATH before running sancho-bin.
# Adding the sancho path to the system path, and running "sancho -l link"  will
# hopefully work since the directory does not change.
# (is this better/platform compatible?)

# Mozilla integration:
# export MOZILLA_FIVE_LIB=/usr/lib/mozilla-1.6
# export LD_LIBRARY_PATH=$MOZILLA_FILE_LIB:$LD_LIBRARY_PATH

fulldir=`(cd $(dirname $0);pwd)`
export LD_LIBRARY_PATH=$fulldir/lib:$LD_LIBRARY_PATH

sancho-bin "$@"

