~bratsche/ubuntu/maverick/monodevelop/disable-appmenu

« back to all changes in this revision

Viewing changes to mdtool.in

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields, Jo Shields, Iain Lane
  • Date: 2009-04-02 20:50:18 UTC
  • mfrom: (1.2.3 upstream) (1.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20090402205018-2ehhq89bo5eeajli
Tags: 2.0+dfsg-1~ubuntu1
[ Jo Shields ]
* New upstream release
* DFSG version of MonoDevelop 2.0
  (deleted all pre-compiled binaries from the tarball)
  + For the record here a list of the deleted files:
    src/addins/NUnit/lib/nunit.framework.dll
    src/addins/NUnit/lib/nunit.core.dll
    src/addins/NUnit/lib/nunit.util.dll
    src/addins/NUnit/lib/nunit.core.interfaces.dll
* debian/control:
  + Tweak build-deps to allow building against libgconf2.24-cil due to 
    broken ABI bump in Ubuntu
* debian/patches/update_templates_for_gtk-sharp_2.10.dpatch,
  debian/patches/update_templates_for_gtk-sharp_2.12.dpatch:
  + Refresh patch to ensure new projects are created using the correct
    version of GTK#

[ Iain Lane ]
* Upload from pkg-cli-apps SVN into Ubuntu; delayed in sid due to transition
  constraints. (LP: #353300)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
3
#this script should be in $PREFIX/bin
4
 
PREFIX="${0%%/mdtool}/.."
 
4
PREFIX="${0%%/bin/mdtool}"
 
5
MONO_EXEC="exec -a mdtool mono"
 
6
EXE_PATH="$PREFIX/lib/monodevelop/bin/mdrun.exe"
5
7
 
6
8
MD_FORCE_DEBUG=yes
7
9
 
8
 
for arg in $*; do 
 
10
for arg in "$@"; do 
9
11
case x$arg in
10
12
        x--profile*)
11
 
                MONO_OPTIONS="$MONO_OPTIONS $arg"
 
13
                MONO_OPTIONS+=("$arg")
12
14
                shift
13
15
                ;;
14
16
        x--debug*)
15
17
                export MONODEVELOP_DISPATCH_DEBUG=yes
16
18
                unset MD_FORCE_DEBUG
17
 
                MONO_OPTIONS="$MONO_OPTIONS $arg"
 
19
                MONO_OPTIONS+=("$arg")
18
20
                shift
19
21
                ;;
20
22
        x--trace*)
21
 
                MONO_OPTIONS="$MONO_OPTIONS $arg"
 
23
                MONO_OPTIONS+=("$arg")
22
24
                shift
23
25
                ;;
24
26
        x--no-debug)
26
28
                shift
27
29
                ;;
28
30
        *)
29
 
                ARGS="$ARGS $arg"
 
31
                ARGS+=("$arg")
30
32
                shift
31
33
                ;;
32
34
esac            
33
35
done
34
36
 
35
37
if [ -z MD_FORCE_DEBUG ]; then
36
 
        MONO_OPTIONS="$MONO_OPTIONS --debug"
37
 
fi
38
 
 
39
 
if [ -n "$MONO_OPTIONS" ]; then
40
 
        echo "** Running with Mono options: $MONO_OPTIONS **"
41
 
fi
42
 
 
43
 
exec_args="-a mdtool mono $MONO_OPTIONS $PREFIX/lib/monodevelop/bin/mdrun.exe $ARGS"
44
 
 
45
 
exec $exec_args
 
38
        MONO_OPTIONS+=("--debug")
 
39
fi
 
40
 
 
41
if [ -n "${MONO_OPTIONS[0]}" ]; then
 
42
        echo "** Running with Mono options: ${MONO_OPTIONS[@]} **"
 
43
fi
 
44
 
 
45
$MONO_EXEC "${MONO_OPTIONS[@]}" "$EXE_PATH" "${ARGS[@]}"
46
46