cvsimport
[beagle.git] / search / beagle-search.in
blobdbd66407f3d348c0eb14fed469df2976d39dba87
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 beagle-search ***"
8     THIS_EXE="./Search.exe"
10     export LD_LIBRARY_PATH="../glue/.libs${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
11     export MONO_PATH="../BeagleClient:../images:../Util${MONO_PATH+:MONO_PATH}"
12 else
13     THIS_EXE="@pkglibdir@/Search.exe"
15     export LD_LIBRARY_PATH="@pkglibdir@${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
18 if [ -z "$BEAGLE_MONO_RUNTIME" ]; then
19    export BEAGLE_MONO_RUNTIME="mono"
20 else
21    echo "*** Using mono runtime at $BEAGLE_MONO_RUNTIME ***"
24 exec -a beagle-search $BEAGLE_MONO_RUNTIME --debug $MONO_EXTRA_ARGS $THIS_EXE "$@"