Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (21 sloc) 563 Bytes
#!/bin/bash
rdir=$(dirname $0)
tmpScript=$rdir/bin/.mosactl.tmp.script
if [ -f $tmpScript ]; then
rm $tmpScript
fi
if [ ! -f $rdir/bin/Mosa.Tool.Mosactl.exe ]; then
mono $rdir/Tools/nuget/nuget.exe restore Source/Mosa.Tool.Mosactl.sln
msbuild $rdir/Source/Mosa.Tool.Mosactl.sln
fi
mono $rdir/bin/Mosa.Tool.Mosactl.exe "$@"
if [ $? -ne 0 ]; then
exit 1
fi
# GDB does not work well when te child process is a dotnet console. So we call it from the bash shell
if [ -f $tmpScript ]; then
source $tmpScript
if [ $? -ne 0 ]; then
exit 1
fi
fi
You can’t perform that action at this time.