Oops, fix a broken part of the patch
[beagle.git] / tools / wrapper.in
blob95d1a43219607d436d273730f69a66626beb9b38
1 #!@bash@
3 # This line will be automatically uncommented when you "make install"
4 #installed=1
6 if [ -z $installed ] ; then
7     echo "*** Running uninstalled @target@ ***"
8     THIS_PATH="../Util:../BeagleClient:../beagled"
9     THIS_EXE="./@target@"
10     THIS_FILTERS="../Filters"
11 else
12     THIS_PATH="@pkglibdir@:@libdir@"
13     THIS_EXE="@pkglibdir@/@target@"
16 if [ -z "$BEAGLE_MONO_RUNTIME" ]; then
17    export BEAGLE_MONO_RUNTIME="mono"
18 else
19    echo "*** Using mono runtime at $BEAGLE_MONO_RUNTIME ***"
22 MONO_GAC_PREFIX="@gacprefix@${MONO_GAC_PREFIX+:$MONO_GAC_PREFIX}" MONO_PATH="$THIS_PATH${MONO_PATH+:$MONO_PATH}" BEAGLE_FILTER_PATH="$BEAGLE_FILTER_PATH${THIS_FILTERS+:$THIS_FILTERS}" exec $BEAGLE_MONO_RUNTIME --debug $MONO_EXTRA_ARGS $THIS_EXE "$@"