#!/bin/sh

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib

EXE_TO_RUN="$libdir/f-spot/f-spot.exe"

case "x--uninstalled" in ("x$1" | "x$2")
	echo "*** Running uninstalled f-spot ***"
	EXE_TO_RUN="./f-spot.exe"
	export MONO_PATH=../FlickrNet:../libgphoto2-sharp:../semweb:$MONO_PATH
esac

case "x--debug" in ("x$1" | "x$2")
	MONO_OPTIONS="--debug"
	echo "*** Running F-Spot in Debug Mode ***"
esac

exec -a f-spot mono $MONO_OPTIONS $EXE_TO_RUN "$@"
