|
1 | 1 | #!/bin/sh |
2 | 2 | EXEC="exec" |
3 | 3 |
|
4 | | -iftest x$1 = x--debug;then |
| 4 | +iftest x"$1" = x--debug;then |
5 | 5 | DEBUG=--debug |
6 | 6 | shift |
7 | 7 | fi |
8 | 8 |
|
9 | | -iftest x$1 = x--gdb;then |
| 9 | +iftest x"$1" = x--gdb;then |
10 | 10 | shift |
11 | 11 | EXEC="gdb --eval-command=run --args" |
12 | 12 | fi |
13 | 13 |
|
14 | | -iftest x$1 = x--valgrind;then |
| 14 | +iftest x"$1" = x--valgrind;then |
15 | 15 | shift |
16 | 16 | EXEC="valgrind$VALGRIND_OPTIONS" |
17 | 17 | fi |
18 | 18 |
|
19 | 19 | MONO_GC_OPTIONS=@mono_gc_options@ |
20 | | -iftest x$1 = x--gc=boehm;then |
| 20 | +iftest x"$1" = x--gc=boehm;then |
21 | 21 | shift |
22 | 22 | MONO_GC_OPTIONS=--gc=boehm |
23 | 23 | fi |
|
27 | 27 | # location of the default FSharp install in order to find the FSharp compiler binaries (see |
28 | 28 | # fsharpbinding/MonoDevelop.FSharpBinding/Services/CompilerLocationUtils.fs). That's a pretty unfortunate |
29 | 29 | # way of finding those binaries. And really should be changed. |
30 | | -$EXEC mono$DEBUG$MONO_OPTIONS$MONO_GC_OPTIONS @DIR@/@TOOL@$@ |
| 30 | +$EXEC mono$DEBUG$MONO_OPTIONS$MONO_GC_OPTIONS @DIR@/@TOOL@"$@" |