OSDN Git Service

updated EVOvendPlugin
[radegast/radegast.git] / runprebuild.sh
old mode 100644 (file)
new mode 100755 (executable)
index 6e956b0..e7c0df2
@@ -1,27 +1,26 @@
 #!/bin/bash
 
-mono bin/Prebuild.exe /target nant
-mono bin/Prebuild.exe /target monodev
-mono bin/Prebuild.exe /target vs2008
+cd `dirname "$0"`
+mkdir bin 2>/dev/null
 
-if [ x$1 == xnant ]; then
-    nant -buildfile:Radegast.build
+mono Radegast/prebuild.exe /target vs2010 /exclude plug_speech
+
+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
-fi
-
-if [ x$1 == xopenjpeg ]; then
-   ARCH=`arch`
-   cd openjpeg-dotnet
-   if [ $ARCH == x86_64 ]; then
-      # since we're a 64bit host, compile a 32bit vesion of openjpeg
-      make ARCH=-i686 ARCHFLAGS=-m32 install
-   fi
-      # compile for default detected platform
-      make install
+else
+    echo "Now run:"
+    echo
+    echo "xbuild Radegast.sln"
 fi