X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=runprebuild.sh;h=e7c0df27918266e98d2e8e44617d8f2e363f595c;hb=6542552215f1d7e312e082d337d778707a4dc08f;hp=734f91f0830f8890beac8ed4ab4d21c968701224;hpb=bc9218abb58978999fa1f8a190561e92a458cb16;p=radegast%2Fradegast.git diff --git a/runprebuild.sh b/runprebuild.sh index 734f91f..e7c0df2 100755 --- a/runprebuild.sh +++ b/runprebuild.sh @@ -2,20 +2,25 @@ cd `dirname "$0"` mkdir bin 2>/dev/null -cp Radegast/assemblies/* bin -mono Radegast/Prebuild.exe /target nant -mono Radegast/Prebuild.exe /target monodev -cp -f NullBuild.txt plugins/Radegast.Plugin.Speech/RadSpeechWin/RadSpeechWin.dll.build +mono Radegast/prebuild.exe /target vs2010 /exclude plug_speech - -if [ x$1 == xnant ]; then - nant -buildfile:Radegast.build +if [ x$1 == xbuild ]; then + xbuild /p:Configuration=Release Radegast.sln RES=$? echo Build Exit Code: $RES - if [ x$2 == xruntests ]; then - nunit-console2 bin/Radegast.Tests.dll /exclude=Network /labels /xml=testresults.xml + + if [ x$RES != x0 ]; then + exit $RES + fi + + if [ x$2 == xdist ]; then + tar czvf radegast-latest.tgz bin fi exit $RES +else + echo "Now run:" + echo + echo "xbuild Radegast.sln" fi