#!/bin/sh

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64

if [ -e ./f-spot.exe ] && [ -e ./Makefile ] && [ -e ./Defines.cs ]; then
    echo "*** Running uninstalled f-spot ***"
    EXE_TO_RUN="./f-spot.exe"
    export MONO_PATH=../libgphoto2-sharp:$MONO_PATH
else
    EXE_TO_RUN="$libdir/f-spot/f-spot.exe"
fi

mono --debug $EXE_TO_RUN "$@"
