#!/bin/sh

MOZDIR=$(grep -h GRE_PATH= /etc/gre.d/*.conf 2>/dev/null | cut -d '"' -f 2 -d = | head -n 1)
export LD_LIBRARY_PATH="$MOZDIR:/usr/lib/mcatalog:$LD_LIBRARY_PATH"
EXE_TO_RUN="/usr/lib/mcatalog/mcatalog.exe"

mono $EXE_TO_RUN "$@"
