~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

1.1.37 by Sebastian Dröge
Import upstream version 0.10.1
1
#!/usr/bin/env bash
1 by Brandon Hale
Import upstream version 0.2.0
2
1.1.8 by Sebastian Dröge
Import upstream version 0.5.1
3
if [ "x$PWD" = "x@srcdir@" ] ; then
1 by Brandon Hale
Import upstream version 0.2.0
4
    echo "*** Running uninstalled @target@ ***"
5
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
6
    export LD_LIBRARY_PATH="../libtomboy/.libs${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}:./Addins/PrintNotes/.libs"
1.1.1 by Daniel Holbach
Import upstream version 0.3.1
7
    export TOMBOY_WRAPPER_PATH="$PWD/@wrapper@"
1.1.21 by Sebastian Dröge
Import upstream version 0.7.2
8
    export MONO_PATH=$MONO_PATH:./Addins:../Mono.Addins/Mono.Addins:../Mono.Addins/Mono.Addins.Setup:../Mono.Addins/Mono.Addins.Gui
1 by Brandon Hale
Import upstream version 0.2.0
9
1.1.3 by Sebastian Dröge
Import upstream version 0.3.5
10
    THIS_EXE="--debug ./@target@"
1 by Brandon Hale
Import upstream version 0.2.0
11
else
1.1.30 by Sebastian Dröge
Import upstream version 0.9.1
12
    export LD_LIBRARY_PATH="@pkglibdir@${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
1.1.21 by Sebastian Dröge
Import upstream version 0.7.2
13
    export MONO_PATH=$MONO_PATH:@pkglibdir@:@pkglibdir@/addins
1.1.1 by Daniel Holbach
Import upstream version 0.3.1
14
    export TOMBOY_WRAPPER_PATH="@bindir@/@wrapper@"
1 by Brandon Hale
Import upstream version 0.2.0
15
16
    THIS_EXE="@pkglibdir@/@target@"
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
17
18
    [ -n "$TOMBOY_DEBUG" ] && TOMBOY_DEBUG="--debug"
19
    [ -n "$TOMBOY_TRACE" ] && TOMBOY_TRACE="--trace=$TOMBOY_TRACE"
20
    [ -n "$TOMBOY_PROFILE" ] && TOMBOY_PROFILE="--profile=$TOMBOY_PROFILE"
21
22
    for arg in $*; do
23
        case "x--debug" in ("x$arg")
24
            TOMBOY_DEBUG=$arg
25
        esac
26
27
        case "x--trace=" in ("x${arg:0:8}")
28
            TOMBOY_TRACE=$arg
29
        esac
30
31
        case "x--profile=" in ("x${arg:0:10}")
32
            TOMBOY_PROFILE=$arg
33
        esac
34
    done
35
36
    if [ -n "$TOMBOY_DEBUG" -o -n "$TOMBOY_TRACE" -o -n "$TOMBOY_PROFILE" -o -n "$MONO_EXTRA_ARGS" ]; then
37
        MONO_OPTIONS="$TOMBOY_DEBUG $TOMBOY_TRACE $TOMBOY_PROFILE $MONO_EXTRA_ARGS"
38
        echo "** Running Mono with $MONO_OPTIONS **"
39
    fi
40
1 by Brandon Hale
Import upstream version 0.2.0
41
fi
42
43
if [ -n "@extragac@" ]; then
1.1.1 by Daniel Holbach
Import upstream version 0.3.1
44
    export MONO_GAC_PREFIX="@extragac@:$MONO_GAC_PREFIX"
1 by Brandon Hale
Import upstream version 0.2.0
45
fi
46
1.1.40 by Pedro Fragoso
Import upstream version 0.11.1
47
exec mono $MONO_OPTIONS $THIS_EXE "$@"