Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 445 Bytes
#!/bin/bash
# http://stackoverflow.com/a/630387
DIR="`dirname \"$0\"`"
LIBPATH="lib"
UNAME="/bin/uname"
[ -f "$UNAME" ] || UNAME="/usr/bin/uname"
OS=$($UNAME -s)
if [ "$OS" == "Darwin" ]; then
DYLD_LIBRARY_PATH="$DIR:$DYLD_LIBRARY_PATH" "$DIR"/sasfit
elif [ -f "$LIBPATH"/ld-[0-9].[0-9][0-9].so ]; then
LIBPATH="$DIR/$LIBPATH"
"$LIBPATH"/ld-[0-9].[0-9][0-9].so --library-path "$LIBPATH" "$DIR"/sasfit
fi;
# vim: set ts=2 sts=2 sw=2 tw=0: