Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / beagled / beagled-index-helper.in
blobba2e4855dffa791345f4163614f1460c69e51ae1
1 #!@bash@
3 if [ -e ./@target@ ] && [ -e ./Makefile.am ] ; then
4     echo "*** Running uninstalled @target@ ***"
5     THIS_PATH="../Util:../BeagleClient:."
6     THIS_EXE="./@target@"
8     export MONO_PATH="../Util:../BeagleClient:$MONO_PATH"
9     export LD_LIBRARY_PATH="../glue/.libs:$LD_LIBRARY_PATH"
11     # In BEAGLE_FILTER_PATH, a trailing ':' means "append the default path".
12     if [ -n "$BEAGLE_FILTER_PATH" ]; then
13         export BEAGLE_FILTER_PATH="../Filters:$BEAGLE_FILTER_PATH"
14     else
15         export BEAGLE_FILTER_PATH="../Filters"
16     fi
18 else
19     THIS_PATH="@pkglibdir@"
20     THIS_EXE="@pkglibdir@/@target@"
23 if [ -n "$_GET_ON_THE_HEAP_BUDDY_BANDWAGON" ]; then
24    n=1
25    while [ -e outfile.helper.$n ]; do
26          n=$(($n+1))
27    done 
28    MONO_EXTRA_ARGS="--profile=heap-buddy:outfile.helper.$n $MONO_EXTRA_ARGS"
31 export MONO_GAC_PREFIX="@gacprefix@:$MONO_GAC_PREFIX"
32 export MONO_PATH="$THIS_PATH:$MONO_PATH"
34 CMDLINE="mono --debug $MONO_EXTRA_ARGS $THIS_EXE $@"
36 exec $CMDLINE