#!/usr/pkg/bin/bash

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

MONO_EXE="$libdir/gbrainy/gbrainy.exe"
 
for arg in $*; do
    case "x--debug" in ("x${arg}")
        MONO_OPTIONS="--debug${MONO_OPTIONS+:$MONO_OPTIONS}"
    esac
done

exec -a gbrainy mono $MONO_OPTIONS $MONO_EXE "$@"

