OSDN Git Service

Permissions
[radegast/radegast.git] / runprebuild-nant.sh
1 #!/bin/bash
2
3 cd `dirname "$0"`
4 mkdir bin 2>/dev/null
5 cp Radegast/assemblies/* bin
6 cp plugins/Radegast.Plugin.Alice/assemblies/*.dll bin
7
8 mono Radegast/prebuild.exe /target nant
9
10 cp -f NullBuild.txt plugins/Radegast.Plugin.Speech/RadSpeechWin/RadSpeechWin.dll.build
11 cp -f NullBuild.txt plugins/Radegast.Plugin.Speech/RadSpeechMac/RadSpeechMac.dll.build
12 cp -f NullBuild.txt plugins/Radegast.Plugin.Demo/Radegast.Plugin.Demo.dll.build
13
14 if [ x$1 == xnant ]; then
15     nant -buildfile:Radegast.build
16     RES=$?
17     echo Build Exit Code: $RES
18
19     if [ x$RES != x0 ]; then
20         exit $RES
21     fi
22
23     if [ x$2 == xdist ]; then
24         tar czvf radegast-latest.tgz bin
25     fi
26     
27     exit $RES
28 fi