3 # This line will be automatically uncommented when you "make install"
6 if [ -z $installed ] ; then
7 echo "*** Running uninstalled @target@ ***"
8 THIS_PATH="../Util:../BeagleClient:."
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}"
15 THIS_PATH="@pkglibdir@"
16 THIS_EXE="@pkglibdir@/@target@"
19 if [ -n "$_GET_ON_THE_HEAP_BUDDY_BANDWAGON" ]; then
21 while [ -e $BEAGLE_HEAP_BUDDY_DIR/outfile.helper.$n ]; do
24 MONO_EXTRA_ARGS="--profile=heap-buddy:$BEAGLE_HEAP_BUDDY_DIR/outfile.helper.$n $MONO_EXTRA_ARGS"
25 elif [ -n "$_HEY_LETS_DO_A_HEAP_SHOT" ]; then
27 while [ -e $BEAGLE_HEAP_SHOT_DIR/outfile.helper.$n ]; do
30 MONO_EXTRA_ARGS="--profile=heap-shot:$BEAGLE_HEAP_SHOT_DIR/outfile.helper.$n $MONO_EXTRA_ARGS"
34 if [ -n "$BEAGLE_MONO_DEBUG_FLAG_IS_SET" ]; then
35 MONO_EXTRA_ARGS="--debug $MONO_EXTRA_ARGS"
38 export MONO_PATH="$THIS_PATH${MONO_PATH+:$MONO_PATH}"
40 CMDLINE="$BEAGLE_MONO_RUNTIME $MONO_EXTRA_ARGS $THIS_EXE $@"
42 PROCESS_NAME="beagled-helper"
43 exec -a $PROCESS_NAME $CMDLINE