Tokenize 001234 as 1234. Include a testing function in NoiseFilter to figure out...
[beagle.git] / beagled / beagled-index-helper.in
blob7a2414190fbe71757b9a00fd7e8e5b8bb69cded1
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@"
19 if [ -n "$_GET_ON_THE_HEAP_BUDDY_BANDWAGON" ]; then
20    n=1
21    while [ -e $BEAGLE_HEAP_BUDDY_DIR/outfile.helper.$n ]; do
22          n=$(($n+1))
23    done 
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
26    n=1
27    while [ -e $BEAGLE_HEAP_SHOT_DIR/outfile.helper.$n ]; do
28          n=$(($n+1))
29    done 
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