#!/bin/sh

# This line will be automatically uncommented when you "make install"
installed=1

if [ -z $installed ] ; then
    echo "*** Running uninstalled ImLogViewer.exe ***"
    THIS_PATH="../Util:../images:../Lucene.Net"
    THIS_EXE="./ImLogViewer.exe"
    export LD_LIBRARY_PATH="../glue/.libs${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
else
    THIS_PATH="/usr/lib64/beagle"
    THIS_EXE="/usr/lib64/beagle/ImLogViewer.exe"
    export LD_LIBRARY_PATH="/usr/lib64/beagle${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
fi

MONO_PATH="$THIS_PATH${MONO_PATH+:$MONO_PATH}" exec -a beagle-imlogviewer mono $MONO_EXTRA_ARGS --debug $THIS_EXE "$@"

