1#!/bin/bash 2 3# get actual path to .app 4script_dir_link=$(dirname "$(readlink "$0")") 5if [[ $script_dir_link == "." ]]; then 6APP_PATH=$(dirname "$0") 7else 8APP_PATH=$script_dir_link 9fi 10 11# set place to load dylibs from 12export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:$APP_PATH/lib 13 14# run the program itself 15$APP_PATH/repsnapper 16