1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/bin/sh
reWrite() {
ret=""
WD=`pwd`
for arg in "$@"
do
if [ -f "./$arg" ]
then
ret="$ret '$WD/$arg'"
else
ret="$ret '$arg'"
fi
done
echo "$ret"
}
MD_BIN_PATH=/usr/local/lib/monodevelop/bin
### SYNCH BLOCK: any changes to this block should be kept in sync with the one in Makefile.include and monodevelop.in
MD_PKG_CONFIG_PATH=/usr/lib64/pkgconfig/../../lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/
if test -d /usr/lib64; then MD_PKG_CONFIG_PATH=$MD_PKG_CONFIG_PATH:/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/; fi
### END BLOCK
if [ -n $PKG_CONFIG_PATH ]; then
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$MD_PKG_CONFIG_PATH
else
export PKG_CONFIG_PATH=$MD_PKG_CONFIG_PATH
fi
eval set -- `reWrite "$@"`
case x$1 in
x--profile)
shift
exec -a "mdtool" /usr/bin/mono --profile $MD_BIN_PATH/mdrun.exe "$@"
exit 0
;;
x--debug)
shift
export MONODEVELOP_DISPATCH_DEBUG=yes
exec -a "mdtool" /usr/bin/mono --debug $MD_BIN_PATH/mdrun.exe "$@"
exit 0
;;
x--trace)
shift
exec -a "mdtool" /usr/bin/mono --trace $MD_BIN_PATH/mdrun.exe "$@"
exit 0;
;;
esac
exec /usr/bin/mono $MD_BIN_PATH/mdrun.exe "$@"
|