Edit displayed text.
[beagle.git] / tools / wrapper.in
blob0c20056e7c8718ae70d17a6dd3beb1227a7ff249
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     THIS_BACKENDS="../beagled"
12 else
13     THIS_PATH="@pkglibdir@:@libdir@"
14     THIS_EXE="@pkglibdir@/@target@"
17 if [ -z "$BEAGLE_MONO_RUNTIME" ]; then
18    export BEAGLE_MONO_RUNTIME="mono"
19 else
20    echo "*** Using mono runtime at $BEAGLE_MONO_RUNTIME ***"
23 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}" BEAGLE_BACKEND_PATH="$BEAGLE_BACKEND_PATH${THIS_BACKENDS+:$THIS_BACKENDS}" exec $BEAGLE_MONO_RUNTIME --debug $MONO_EXTRA_ARGS $THIS_EXE "$@"