OSDN Git Service

Initial Check-in of Prebuild(XML) system for Radegast
[radegast/radegast.git] / runprebuild.sh
1 #!/bin/bash
2
3 mono bin/Prebuild.exe /target nant
4 mono bin/Prebuild.exe /target monodev
5 mono bin/Prebuild.exe /target vs2008
6
7 if [ x$1 == xnant ]; then
8     nant -buildfile:Radegast.build
9     RES=$?
10     echo Build Exit Code: $RES
11     if [ x$2 == xruntests ]; then
12         nunit-console2 bin/Radegast.Tests.dll /exclude=Network /labels /xml=testresults.xml
13     fi
14     
15     exit $RES
16 fi
17
18 if [ x$1 == xopenjpeg ]; then
19    ARCH=`arch`
20    cd openjpeg-dotnet
21    if [ $ARCH == x86_64 ]; then
22       # since we're a 64bit host, compile a 32bit vesion of openjpeg
23       make ARCH=-i686 ARCHFLAGS=-m32 install
24    fi
25       # compile for default detected platform
26       make install
27 fi