Merging from head
[beagle.git] / beagled / wrapper.in
blob27f97f93e0f16c3a6143d7fede1433a7a172055d
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:."
9     THIS_EXE="./@target@"
11     export MONO_PATH="../Util:../BeagleClient${MONO_PATH+:$MONO_PATH}"
12     export LD_LIBRARY_PATH="../glue/.libs${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
13     export BEAGLE_FILTER_PATH="../Filters${BEAGLE_FILTER_PATH+:$BEAGLE_FILTER_PATH}"
14 else
15     THIS_PATH="@pkglibdir@"
16     THIS_EXE="@pkglibdir@/@target@"
18     export MONO_PATH="@pkglibdir@${MONO_PATH+:$MONO_PATH}"
19     export LD_LIBRARY_PATH="@pkglibdir@${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
22 MONO_PATH="$THIS_PATH${MONO_PATH+:$MONO_PATH}" exec -a @wrapper@ mono --debug $MONO_EXTRA_ARGS $THIS_EXE "$@"