Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / beagled / wrapper.in
blob582d2d1fb5f0de2136aa7d76a1aedb5cd0cbeffc
1 #!@bash@
3 if [ -e ./@target@ ] && [ -e ./Makefile.am ] ; then
4     echo "*** Running uninstalled @target@ ***"
5     THIS_PATH="../Util:../BeagleClient:."
6     THIS_EXE="./@target@"
8     export MONO_PATH="../Util:../BeagleClient:$MONO_PATH"
9     export LD_LIBRARY_PATH="../glue/.libs:$LD_LIBRARY_PATH"
11     # In BEAGLE_FILTER_PATH, a trailing ':' means "append the default path".
12     if [ -n "$BEAGLE_FILTER_PATH" ]; then
13         export BEAGLE_FILTER_PATH="../Filters:$BEAGLE_FILTER_PATH"
14     else
15         export BEAGLE_FILTER_PATH="../Filters"
16     fi
18 else
19     THIS_PATH="@pkglibdir@"
20     THIS_EXE="@pkglibdir@/@target@"
22     export MONO_PATH="@pkglibdir@:$MONO_PATH"
23     export LD_LIBRARY_PATH="@pkglibdir@:$LD_LIBRARY_PATH"
26 MONO_GAC_PREFIX="@gacprefix@:$MONO_GAC_PREFIX" MONO_PATH="$THIS_PATH:$MONO_PATH" exec mono --debug $MONO_EXTRA_ARGS $THIS_EXE "$@"